Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009973/0.0009973, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009628/0.0009628, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9265/0.9265, allocations: 173.4 MB / 201.1 MB, free: 9.352 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400,variableFilter="time|smpm.is.[0-9,]+.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400,variableFilter="time|smpm.is.[0-9,]+.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.741e-05/1.861e-05, allocations: 2.312 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.007724/0.007742, allocations: 8.967 MB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00474/0.01248, allocations: 3.096 MB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009676/0.01345, allocations: 51.69 kB / 280.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001235/0.01469, allocations: 0.6638 MB / 280.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001535/0.01622, allocations: 0.7684 MB / 281.6 MB, free: 8.832 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005887/0.01681, allocations: 335.4 kB / 281.9 MB, free: 8.504 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00194/0.01875, allocations: 2.171 MB / 284.1 MB, free: 6.324 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009945/0.01974, allocations: 0.8087 MB / 284.9 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001878/0.02162, allocations: 1.509 MB / 286.4 MB, free: 3.949 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.02284, allocations: 0.9858 MB / 287.4 MB, free: 2.961 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003533/0.02319, allocations: 227.9 kB / 287.6 MB, free: 2.738 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004908/0.02368, allocations: 307.8 kB / 287.9 MB, free: 2.438 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004649/0.02414, allocations: 0.6816 MB / 288.6 MB, free: 1.754 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007401/0.02488, allocations: 0.7288 MB / 289.3 MB, free: 1.023 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1228/0.1477, allocations: 1.668 MB / 291 MB, free: 20.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1477, allocations: 1.875 kB / 291 MB, free: 20.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1477, allocations: 0.625 kB / 291 MB, free: 20.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001007/0.1478, allocations: 0 / 291 MB, free: 20.31 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004221/0.1521, allocations: 2.351 MB / 293.3 MB, free: 19.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.1521, allocations: 9.344 kB / 293.3 MB, free: 19.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007717/0.1529, allocations: 367 kB / 293.7 MB, free: 19.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.1545, allocations: 1.133 MB / 294.8 MB, free: 18.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.341e-05/0.1546, allocations: 114.1 kB / 294.9 MB, free: 18.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.1547, allocations: 156.4 kB / 295.1 MB, free: 18.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001935/0.1567, allocations: 1.276 MB / 296.3 MB, free: 18.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.35e-05/0.1567, allocations: 8.875 kB / 296.4 MB, free: 18.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-05/0.1568, allocations: 68.86 kB / 296.4 MB, free: 18.44 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.671e-05/0.1569, allocations: 81.22 kB / 296.5 MB, free: 18.44 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.1581, allocations: 0.584 MB / 297.1 MB, free: 18.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005883/0.164, allocations: 6.037 MB / 303.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.1645, allocations: 256.3 kB / 303.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.1647, allocations: 110.6 kB / 303.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001406/0.1648, allocations: 39.31 kB / 303.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.1648, allocations: 41.42 kB / 303.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 3.045e-06/0.1648, allocations: 0 / 303.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.00344/0.1683, allocations: 2.067 MB / 305.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001072/0.1693, allocations: 2.487 MB / 308.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.1704, allocations: 1.39 MB / 309.5 MB, free: 11.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.1704, allocations: 39.89 kB / 309.5 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003892/0.1708, allocations: 1.139 MB / 310.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1709, allocations: 256.3 kB / 310.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.1712, allocations: 331 kB / 311.3 MB, free: 9.988 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.988e-05/0.1712, allocations: 476.8 kB / 311.7 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002669/0.1715, allocations: 187.4 kB / 311.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000565/0.172, allocations: 1.563 MB / 313.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.1731, allocations: 1.928 MB / 315.4 MB, free: 5.598 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/0.1731, allocations: 7.906 kB / 315.4 MB, free: 5.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001527/0.1746, allocations: 1.519 MB / 316.9 MB, free: 5.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.1746, allocations: 23.28 kB / 316.9 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.1746, allocations: 32.22 kB / 317 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002175/0.1749, allocations: 129.3 kB / 317.1 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006346/0.1755, allocations: 388.9 kB / 317.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006445/0.1761, allocations: 1.847 MB / 319.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007206/0.1769, allocations: 144.3 kB / 319.5 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.898e-05/0.1769, allocations: 93.34 kB / 319.6 MB, free: 3.289 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003049/0.1772, allocations: 284 kB / 319.8 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.1774, allocations: 175.2 kB / 320 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007309/0.1781, allocations: 0.6302 MB / 320.6 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.1781, allocations: 8 kB / 320.6 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1781, allocations: 0 / 320.6 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1781, allocations: 3.984 kB / 320.7 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.1808, allocations: 2.678 MB / 323.3 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1808, allocations: 4 kB / 323.3 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002296/0.181, allocations: 106.1 kB / 323.4 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000326/0.1813, allocations: 150.8 kB / 323.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.533e-05/0.1814, allocations: 19.98 kB / 323.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.1836, allocations: 4.118 MB / 327.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001296/0.1849, allocations: 2.414 MB / 330.1 MB, free: 8.441 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.1861, allocations: 1.089 MB / 331.2 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.1864, allocations: 214.9 kB / 331.4 MB, free: 7.031 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.996e-05/0.1865, allocations: 16 kB / 331.5 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000335/0.1868, allocations: 43.89 kB / 331.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.187, allocations: 66.59 kB / 331.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/0.187, allocations: 35.98 kB / 331.6 MB, free: 6.879 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008167/0.1878, allocations: 0.7388 MB / 332.3 MB, free: 6.141 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1878, allocations: 0 / 332.3 MB, free: 6.141 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001231/0.189, allocations: 375.9 kB / 332.7 MB, free: 5.773 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002976/0.1893, allocations: 177 kB / 332.9 MB, free: 5.602 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.1907, allocations: 0.9997 MB / 333.9 MB, free: 4.617 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.1907, allocations: 4.547 kB / 333.9 MB, free: 4.617 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005819/0.1913, allocations: 0.6761 MB / 334.6 MB, free: 3.898 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009966/0.1923, allocations: 358.9 kB / 334.9 MB, free: 3.555 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003382/0.1957, allocations: 2.891 MB / 337.8 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.196, allocations: 406.2 kB / 338.2 MB, free: 100 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005524/0.1965, allocations: 288.9 kB / 338.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.1967, allocations: 112.5 kB / 338.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1967, allocations: 0 / 338.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of Templates: time 0.02411/0.2208, allocations: 19.79 MB / 358.4 MB, free: 12.27 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.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.1102606249041855]