Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002136/0.002136, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00208/0.00208, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.536/1.536, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 51.86 kB / 373.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.108, allocations: 53.33 MB / 426.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2196/0.3275, allocations: 15.87 MB / 442.7 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01227/0.3398, allocations: 5.364 MB / 448.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004896/0.3447, allocations: 124.4 kB / 448.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004963/0.3497, allocations: 1.14 MB / 449.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005937/0.3556, allocations: 1.285 MB / 450.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003279/0.3589, allocations: 0.9285 MB / 451.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006899/0.3658, allocations: 3.648 MB / 455.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003804/0.3696, allocations: 2.371 MB / 457.6 MB, free: 9.801 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003755/0.3734, allocations: 1.786 MB / 459.3 MB, free: 8.926 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004816/0.3782, allocations: 2.15 MB / 461.5 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001274/0.3794, allocations: 484.1 kB / 462 MB, free: 7.887 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002332/0.3818, allocations: 0.6971 MB / 462.7 MB, free: 7.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001363/0.3831, allocations: 1.153 MB / 463.8 MB, free: 7.098 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003821/0.387, allocations: 2.052 MB / 465.9 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009318/0.3963, allocations: 6.316 MB / 472.2 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.3963, allocations: 1.156 kB / 472.2 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3963, allocations: 4 kB / 472.2 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001946/0.3965, allocations: 3.938 kB / 472.2 MB, free: 0.8789 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01363/0.4101, allocations: 4.36 MB / 476.5 MB, free: 13.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.4102, allocations: 9.469 kB / 476.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003304/0.4135, allocations: 0.6296 MB / 477.2 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004881/0.4183, allocations: 2.308 MB / 479.5 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002114/0.4185, allocations: 241.8 kB / 479.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005285/0.4191, allocations: 312.1 kB / 480 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008501/0.4276, allocations: 4.051 MB / 484.1 MB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.308e-05/0.4277, allocations: 7.953 kB / 484.1 MB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003332/0.428, allocations: 128 kB / 484.2 MB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001631/0.4281, allocations: 146.2 kB / 484.4 MB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006933/0.4351, allocations: 3.393 MB / 487.8 MB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0227/0.4578, allocations: 13.38 MB / 0.4894 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005157/0.4629, allocations: 4.177 MB / 0.4935 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.4647, allocations: 0.9338 MB / 0.4944 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005288/0.47, allocations: 2.854 MB / 0.4972 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/0.47, allocations: 51.5 kB / 0.4972 GB, free: 13.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.575e-06/0.47, allocations: 0 / 0.4972 GB, free: 13.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01323/0.4833, allocations: 6.046 MB / 0.5031 GB, free: 6.953 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.4833, allocations: 72.7 kB / 0.5032 GB, free: 6.867 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003089/0.4864, allocations: 1.906 MB / 0.505 GB, free: 4.918 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001151/0.4865, allocations: 45.7 kB / 0.5051 GB, free: 4.867 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/0.4878, allocations: 1.556 MB / 0.5066 GB, free: 3.297 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004669/0.4883, allocations: 0.5114 MB / 0.5071 GB, free: 2.781 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005726/0.4888, allocations: 335.4 kB / 0.5074 GB, free: 2.445 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.489, allocations: 309.1 kB / 0.5077 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.4903, allocations: 0.773 MB / 0.5085 GB, free: 1.367 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/0.4922, allocations: 1.383 MB / 0.5098 GB, free: 15.72 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003425/0.4956, allocations: 2.312 MB / 0.5121 GB, free: 13.14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.204e-05/0.4956, allocations: 7.938 kB / 0.5121 GB, free: 13.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004607/0.5002, allocations: 2.486 MB / 0.5145 GB, free: 10.63 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.5003, allocations: 12 kB / 0.5145 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.908e-05/0.5003, allocations: 20 kB / 0.5146 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004011/0.5007, allocations: 122.8 kB / 0.5147 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001899/0.5026, allocations: 487.2 kB / 0.5151 GB, free: 9.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.504, allocations: 1.398 MB / 0.5165 GB, free: 8.449 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/0.5058, allocations: 116 kB / 0.5166 GB, free: 8.336 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/0.506, allocations: 91.97 kB / 0.5167 GB, free: 8.246 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001913/0.5079, allocations: 0.9928 MB / 0.5177 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004723/0.5084, allocations: 212.9 kB / 0.5179 GB, free: 7.035 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00373/0.5121, allocations: 1.966 MB / 0.5198 GB, free: 5.047 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.5121, allocations: 16.89 kB / 0.5198 GB, free: 5.031 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/0.5121, allocations: 0 / 0.5198 GB, free: 5.031 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.5121, allocations: 7.969 kB / 0.5198 GB, free: 5.023 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008683/0.5208, allocations: 4.991 MB / 0.5247 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.5208, allocations: 4 kB / 0.5247 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001428/0.5222, allocations: 311.8 kB / 0.525 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003175/0.5226, allocations: 97.19 kB / 0.5251 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.024e-05/0.5227, allocations: 27.98 kB / 0.5251 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.5238, allocations: 1.378 MB / 0.5265 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.5238, allocations: 4 kB / 0.5265 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005194/0.529, allocations: 3.099 MB / 0.5295 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.5301, allocations: 475.5 kB / 0.5299 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002566/0.5304, allocations: 24 kB / 0.53 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.5314, allocations: 79.91 kB / 0.53 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.5316, allocations: 89.19 kB / 0.5301 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.271e-05/0.5317, allocations: 40 kB / 0.5302 GB, free: 10.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002213/0.5339, allocations: 1.297 MB / 0.5314 GB, free: 8.781 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5339, allocations: 0 / 0.5314 GB, free: 8.781 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001891/0.5358, allocations: 0.5312 MB / 0.5319 GB, free: 8.25 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003639/0.5362, allocations: 185 kB / 0.5321 GB, free: 8.059 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003653/0.5398, allocations: 2.125 MB / 0.5342 GB, free: 5.879 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.5398, allocations: 1.875 kB / 0.5342 GB, free: 5.879 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/0.5415, allocations: 1.111 MB / 0.5353 GB, free: 4.711 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002457/0.544, allocations: 0.5199 MB / 0.5358 GB, free: 4.199 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009974/0.554, allocations: 5.669 MB / 0.5413 GB, free: 14.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/0.5562, allocations: 2.268 MB / 0.5435 GB, free: 12.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001644/0.5578, allocations: 0.5094 MB / 0.544 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004879/0.5583, allocations: 159.4 kB / 0.5442 GB, free: 11.49 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5583, allocations: 0 / 0.5442 GB, free: 11.49 MB / 462.1 MB Notification: Performance of Templates: time 0.05405/0.6124, allocations: 27.35 MB / 0.5709 GB, free: 400 kB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.711500685662031]