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.0009341/0.0009341, allocations: 72.08 kB / 21.69 MB, free: 2.852 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.0009634/0.0009634, allocations: 140.8 kB / 24.97 MB, free: 9.348 MB / 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.9879/0.9879, allocations: 173.3 MB / 201.5 MB, free: 8.938 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.282e-06/1.282e-06, allocations: 0 / 268.1 MB, free: 6.586 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.753e-05/1.882e-05, allocations: 2.312 kB / 268.1 MB, free: 6.582 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01354/0.01356, allocations: 8.921 MB / 277 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005531/0.01909, allocations: 3.1 MB / 280.1 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00085/0.01994, allocations: 51.69 kB / 280.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.02146, allocations: 0.656 MB / 280.8 MB, free: 9.797 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001754/0.02321, allocations: 0.7684 MB / 281.6 MB, free: 9.023 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006697/0.02388, allocations: 343.3 kB / 281.9 MB, free: 8.688 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002104/0.02599, allocations: 2.167 MB / 284.1 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001335/0.02732, allocations: 0.8086 MB / 284.9 MB, free: 5.648 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001622/0.02894, allocations: 1.364 MB / 286.2 MB, free: 4.281 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001809/0.03075, allocations: 1.029 MB / 287.3 MB, free: 3.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003176/0.03107, allocations: 232 kB / 287.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004905/0.03156, allocations: 331.7 kB / 287.8 MB, free: 2.699 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006301/0.03219, allocations: 0.7128 MB / 288.5 MB, free: 1.984 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008039/0.033, allocations: 0.7483 MB / 289.3 MB, free: 1.234 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1189/0.1519, allocations: 1.695 MB / 291 MB, free: 20.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.1519, allocations: 0 / 291 MB, free: 20.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1519, allocations: 0.8125 kB / 291 MB, free: 20.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001565/0.1521, allocations: 0 / 291 MB, free: 20.06 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.004382/0.1565, allocations: 2.392 MB / 293.4 MB, free: 19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.1565, allocations: 10.09 kB / 293.4 MB, free: 19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000827/0.1574, allocations: 367.9 kB / 293.7 MB, free: 18.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001847/0.1592, allocations: 1.126 MB / 294.9 MB, free: 18.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.1593, allocations: 114.9 kB / 295 MB, free: 18.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002385/0.1596, allocations: 155.7 kB / 295.1 MB, free: 18.51 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002345/0.1619, allocations: 1.276 MB / 296.4 MB, free: 18.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.546e-05/0.162, allocations: 10.89 kB / 296.4 MB, free: 18.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.1621, allocations: 72.41 kB / 296.5 MB, free: 18.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/0.1622, allocations: 75.81 kB / 296.6 MB, free: 18.2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.1636, allocations: 0.5943 MB / 297.2 MB, free: 18.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007237/0.1709, allocations: 6.122 MB / 303.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004851/0.1713, allocations: 236 kB / 303.5 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.1715, allocations: 110.2 kB / 303.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001578/0.1717, allocations: 36.83 kB / 303.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.1717, allocations: 43.28 kB / 303.7 MB, free: 15.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 5.009e-06/0.1717, allocations: 6.812 kB / 303.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.003898/0.1756, allocations: 2.084 MB / 305.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001194/0.1768, allocations: 2.49 MB / 308.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.1781, allocations: 1.397 MB / 309.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.204e-05/0.1781, allocations: 36.92 kB / 309.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004041/0.1785, allocations: 1.142 MB / 310.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.1786, allocations: 248.2 kB / 311.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002398/0.1789, allocations: 341.9 kB / 311.4 MB, free: 9.875 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.13e-05/0.1789, allocations: 479 kB / 311.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.1792, allocations: 181.2 kB / 312.1 MB, free: 9.383 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005918/0.1798, allocations: 1.568 MB / 313.6 MB, free: 7.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.1809, allocations: 1.934 MB / 315.6 MB, free: 5.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/0.1809, allocations: 8.375 kB / 315.6 MB, free: 5.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001669/0.1825, allocations: 1.518 MB / 317.1 MB, free: 5.082 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.1826, allocations: 21.75 kB / 317.1 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/0.1826, allocations: 33.66 kB / 317.2 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003059/0.1829, allocations: 142.4 kB / 317.3 MB, free: 5.035 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006656/0.1836, allocations: 393.5 kB / 317.7 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007431/0.1843, allocations: 1.93 MB / 319.6 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008509/0.1852, allocations: 138.6 kB / 319.7 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.401e-05/0.1852, allocations: 98.05 kB / 319.8 MB, free: 3.145 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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003544/0.1856, allocations: 287.9 kB / 320.1 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001853/0.1858, allocations: 175 kB / 320.3 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008041/0.1866, allocations: 0.6293 MB / 320.9 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1866, allocations: 8 kB / 320.9 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1866, allocations: 0 / 320.9 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1866, allocations: 10.64 kB / 320.9 MB, free: 2.074 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002809/0.1894, allocations: 2.648 MB / 323.6 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.1894, allocations: 8.641 kB / 323.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002416/0.1897, allocations: 111.2 kB / 323.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003776/0.19, allocations: 173.7 kB / 323.9 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.1901, allocations: 16 kB / 323.9 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002362/0.1924, allocations: 4.198 MB / 328.1 MB, free: 10.6 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001345/0.1938, allocations: 2.409 MB / 330.5 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.1951, allocations: 1.107 MB / 331.6 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003761/0.1954, allocations: 211 kB / 331.8 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.1955, allocations: 23.94 kB / 331.8 MB, free: 6.625 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003572/0.1959, allocations: 55.97 kB / 331.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.196, allocations: 63.22 kB / 332 MB, free: 6.512 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-05/0.196, allocations: 30.28 kB / 332 MB, free: 6.484 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008079/0.1968, allocations: 0.7462 MB / 332.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1968, allocations: 0 / 332.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001526/0.1984, allocations: 380 kB / 333.1 MB, free: 5.371 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 {(2,1,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.0002841/0.1987, allocations: 173.9 kB / 333.3 MB, free: 5.195 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.2001, allocations: 1.035 MB / 334.3 MB, free: 4.18 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.2001, allocations: 0 / 334.3 MB, free: 4.18 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006455/0.2007, allocations: 0.6965 MB / 335 MB, free: 3.441 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.2018, allocations: 369 kB / 335.4 MB, free: 3.094 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.2057, allocations: 2.905 MB / 338.3 MB, free: 52 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.2061, allocations: 410 kB / 338.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005922/0.2067, allocations: 292.9 kB / 339 MB, free: 15.33 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.2069, allocations: 104.5 kB / 339.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.633e-06/0.2069, allocations: 0 / 339.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of Templates: time 0.03285/0.2397, allocations: 19.61 MB / 358.7 MB, free: 11.96 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.195229497971013]