Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001651/0.001651, allocations: 83.67 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 159.5 kB / 24.99 MB, free: 9.328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.036/1.036, allocations: 177 MB / 205.2 MB, free: 5.18 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 273 MB, free: 1.586 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.379e-05/2.511e-05, allocations: 2.312 kB / 273 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.009476/0.009501, allocations: 10.79 MB / 283.8 MB, free: 6.742 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007028/0.01653, allocations: 3.61 MB / 287.4 MB, free: 3.117 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002109/0.01864, allocations: 87.38 kB / 287.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002199/0.02084, allocations: 0.8188 MB / 288.3 MB, free: 2.207 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00287/0.02371, allocations: 0.9546 MB / 289.3 MB, free: 1.246 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000976/0.02468, allocations: 459.2 kB / 289.7 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1157/0.1404, allocations: 3.045 MB / 292.8 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002264/0.1427, allocations: 1.515 MB / 294.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00309/0.1457, allocations: 2.087 MB / 296.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002581/0.1483, allocations: 1.652 MB / 298 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008749/0.1492, allocations: 375.5 kB / 298.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009101/0.1501, allocations: 478.4 kB / 298.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008563/0.151, allocations: 1.135 MB / 300 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.1521, allocations: 1.152 MB / 301.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002477/0.1546, allocations: 2.699 MB / 303.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1546, allocations: 0 / 303.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1546, allocations: 0 / 303.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.07e-05/0.1546, allocations: 0.9062 kB / 303.8 MB, free: 12.86 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.003492/0.1581, allocations: 3.589 MB / 307.4 MB, free: 10.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1582, allocations: 7.125 kB / 307.4 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007577/0.1589, allocations: 0.567 MB / 308 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.1606, allocations: 1.698 MB / 309.7 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.561e-05/0.1606, allocations: 183.5 kB / 309.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000205/0.1608, allocations: 261 kB / 310.1 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.163, allocations: 1.99 MB / 312.1 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.664e-05/0.1631, allocations: 8 kB / 312.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/0.1632, allocations: 111.1 kB / 312.2 MB, free: 8.176 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.803e-05/0.1633, allocations: 120.9 kB / 312.4 MB, free: 8.055 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.1649, allocations: 0.9458 MB / 313.3 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007657/0.1725, allocations: 8.748 MB / 322 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008216/0.1734, allocations: 0.5437 MB / 322.6 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004923/0.1738, allocations: 330.2 kB / 322.9 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000162/0.174, allocations: 56.8 kB / 323 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.174, allocations: 54.14 kB / 323 MB, free: 13.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 3.186e-06/0.174, allocations: 0 / 323 MB, free: 13.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.006287/0.1803, allocations: 3.745 MB / 326.8 MB, free: 9.496 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.1804, allocations: 64.41 kB / 326.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0015/0.1819, allocations: 1.455 MB / 328.3 MB, free: 7.949 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.406e-05/0.1819, allocations: 45.7 kB / 328.3 MB, free: 7.898 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007186/0.1826, allocations: 1.409 MB / 329.7 MB, free: 6.484 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002571/0.1829, allocations: 447 kB / 330.2 MB, free: 6.055 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003021/0.1832, allocations: 301.1 kB / 330.5 MB, free: 5.75 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.513e-05/0.1833, allocations: 480.8 kB / 330.9 MB, free: 5.277 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/0.1837, allocations: 247.8 kB / 331.2 MB, free: 5.035 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007251/0.1844, allocations: 0.9823 MB / 332.2 MB, free: 3.746 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.1857, allocations: 1.372 MB / 333.5 MB, free: 2.129 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.1857, allocations: 7.688 kB / 333.5 MB, free: 2.125 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001905/0.1876, allocations: 1.439 MB / 335 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.1877, allocations: 15.98 kB / 335 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.1877, allocations: 16 kB / 335 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003367/0.188, allocations: 138.2 kB / 335.1 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.1891, allocations: 416.4 kB / 335.6 MB, free: 212 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/0.1908, allocations: 3.624 MB / 339.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008015/0.1916, allocations: 131.8 kB / 339.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.224e-05/0.1917, allocations: 75.98 kB / 339.4 MB, free: 12.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000607/0.1923, allocations: 263.5 kB / 339.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002333/0.1925, allocations: 222.8 kB / 339.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001393/0.1939, allocations: 1.047 MB / 340.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1939, allocations: 12 kB / 340.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1939, allocations: 0 / 340.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.1939, allocations: 7.109 kB / 340.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004046/0.198, allocations: 3.107 MB / 344 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.198, allocations: 4 kB / 344 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000589/0.1986, allocations: 269.7 kB / 344.3 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002658/0.1988, allocations: 118.9 kB / 344.4 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.857e-05/0.1989, allocations: 27.98 kB / 344.4 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001521/0.2004, allocations: 3.611 MB / 348.1 MB, free: 3.199 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.2004, allocations: 0 / 348.1 MB, free: 3.199 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.2022, allocations: 1.5 MB / 349.6 MB, free: 1.633 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004632/0.2027, allocations: 322.8 kB / 349.9 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.2028, allocations: 27.94 kB / 349.9 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007315/0.2036, allocations: 91.88 kB / 350 MB, free: 1.195 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.2037, allocations: 84.83 kB / 350.1 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.56e-05/0.2037, allocations: 34.91 kB / 350.1 MB, free: 1.082 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008983/0.2046, allocations: 0.8332 MB / 350.9 MB, free: 260 kB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2046, allocations: 0 / 350.9 MB, free: 260 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.00117/0.2058, allocations: 488 kB / 351.4 MB, free: 15.77 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0003043/0.2061, allocations: 191.2 kB / 351.6 MB, free: 15.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.2078, allocations: 1.347 MB / 352.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.2078, allocations: 0 / 352.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008001/0.2086, allocations: 0.8461 MB / 353.8 MB, free: 13.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.2098, allocations: 475.3 kB / 354.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005675/0.2154, allocations: 4.209 MB / 358.5 MB, free: 8.672 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005078/0.216, allocations: 0.6498 MB / 359.1 MB, free: 7.992 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008322/0.2168, allocations: 390.8 kB / 359.5 MB, free: 7.605 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.2171, allocations: 136.5 kB / 359.6 MB, free: 7.473 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.2171, allocations: 0 / 359.6 MB, free: 7.473 MB / 314.7 MB Notification: Performance of Templates: time 0.03429/0.2514, allocations: 24.96 MB / 384.6 MB, free: 14.94 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4796994030475616]