Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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.001168/0.001168, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001603/0.002771, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001046/0.001046, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001421/0.002467, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9837/0.9837, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07935/1.063, allocations: 52.5 MB / 238.3 MB, free: 4.426 MB / 234.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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.411e-05, allocations: 2.312 kB / 239.6 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007963/0.007988, allocations: 9.416 MB / 249 MB, free: 9.699 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00556/0.01355, allocations: 3.169 MB / 252.2 MB, free: 6.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001662/0.01521, allocations: 71.5 kB / 252.2 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001254/0.01646, allocations: 0.679 MB / 252.9 MB, free: 5.766 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001774/0.01824, allocations: 0.8341 MB / 253.7 MB, free: 4.926 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006606/0.0189, allocations: 403.3 kB / 254.1 MB, free: 4.531 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002254/0.02115, allocations: 2.645 MB / 256.8 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.02236, allocations: 1.292 MB / 258.1 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00258/0.02494, allocations: 2.172 MB / 260.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001226/0.02617, allocations: 1.313 MB / 261.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003/0.02647, allocations: 308 kB / 261.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005491/0.02702, allocations: 411.7 kB / 262.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006991/0.02772, allocations: 0.7364 MB / 263 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007356/0.02845, allocations: 0.7876 MB / 263.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001747/0.0302, allocations: 2.106 MB / 265.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.301e-05/0.03021, allocations: 0 / 265.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.03021, allocations: 0 / 265.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.086e-05/0.03025, allocations: 0 / 265.9 MB, free: 8.648 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.003149/0.0334, allocations: 3.16 MB / 269 MB, free: 5.445 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.03344, allocations: 8.031 kB / 269.1 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005728/0.03401, allocations: 453.8 kB / 269.5 MB, free: 4.977 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.03528, allocations: 1.077 MB / 270.6 MB, free: 3.844 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.344e-05/0.03536, allocations: 160.6 kB / 270.7 MB, free: 3.684 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001914/0.03555, allocations: 208.4 kB / 270.9 MB, free: 3.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.03721, allocations: 1.621 MB / 272.6 MB, free: 1.746 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.057e-05/0.03725, allocations: 7.938 kB / 272.6 MB, free: 1.738 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.03737, allocations: 88 kB / 272.6 MB, free: 1.652 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-05/0.03745, allocations: 104.2 kB / 272.8 MB, free: 1.547 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008804/0.03833, allocations: 0.6364 MB / 273.4 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1092/0.1475, allocations: 5.497 MB / 278.9 MB, free: 22.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009749/0.1485, allocations: 0.6625 MB / 279.5 MB, free: 22.29 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006388/0.1492, allocations: 427.3 kB / 280 MB, free: 22.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001794/0.1493, allocations: 51.16 kB / 280 MB, free: 22.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.1494, allocations: 47.03 kB / 280.1 MB, free: 22.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 4.268e-06/0.1494, allocations: 1.125 kB / 280.1 MB, free: 22.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.004967/0.1543, allocations: 2.464 MB / 282.5 MB, free: 21.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.1544, allocations: 64.41 kB / 282.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009217/0.1553, allocations: 0.9597 MB / 283.5 MB, free: 21.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.373e-05/0.1554, allocations: 49.77 kB / 283.6 MB, free: 21.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003076/0.1557, allocations: 0.8893 MB / 284.5 MB, free: 21.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.1558, allocations: 423 kB / 284.9 MB, free: 20.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002518/0.1561, allocations: 235.9 kB / 285.1 MB, free: 20.74 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.866e-05/0.1562, allocations: 372.7 kB / 285.5 MB, free: 20.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.1564, allocations: 169 kB / 285.7 MB, free: 20.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003163/0.1567, allocations: 0.5221 MB / 286.2 MB, free: 19.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007174/0.1575, allocations: 0.8471 MB / 287 MB, free: 19.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/0.1575, allocations: 3.219 kB / 287 MB, free: 19.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001223/0.1587, allocations: 0.9822 MB / 288 MB, free: 19.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.1587, allocations: 9.625 kB / 288 MB, free: 19.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.1587, allocations: 11.66 kB / 288 MB, free: 19.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005046/0.1592, allocations: 232.6 kB / 288.3 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006354/0.1599, allocations: 329.8 kB / 288.6 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002283/0.1621, allocations: 4.739 MB / 293.3 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005621/0.1627, allocations: 46.8 kB / 293.4 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-05/0.1628, allocations: 44.41 kB / 293.4 MB, free: 15.44 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004242/0.1632, allocations: 208.4 kB / 293.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.1634, allocations: 125.1 kB / 293.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009789/0.1643, allocations: 0.8352 MB / 294.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.1643, allocations: 12.72 kB / 294.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1643, allocations: 7.016 kB / 294.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.1643, allocations: 6.906 kB / 294.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.1669, allocations: 2.386 MB / 297 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.1669, allocations: 3.875 kB / 297 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004286/0.1674, allocations: 214.3 kB / 297.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002455/0.1676, allocations: 189.5 kB / 297.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005016/0.1681, allocations: 305.5 kB / 297.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.68e-05/0.1682, allocations: 39.97 kB / 297.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002104/0.1703, allocations: 5.897 MB / 303.6 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.1703, allocations: 4.156 kB / 303.6 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.1713, allocations: 1.246 MB / 304.9 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.1714, allocations: 31.72 kB / 304.9 MB, free: 6.383 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.1717, allocations: 43.97 kB / 304.9 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.1718, allocations: 92.77 kB / 305 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.284e-05/0.1719, allocations: 31.98 kB / 305.1 MB, free: 6.219 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002906/0.1722, allocations: 484.6 kB / 305.5 MB, free: 5.797 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1722, allocations: 0 / 305.5 MB, free: 5.797 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008745/0.173, allocations: 455.9 kB / 306 MB, free: 5.352 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002388/0.1733, allocations: 178.9 kB / 306.2 MB, free: 5.176 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009815/0.1743, allocations: 1.147 MB / 307.3 MB, free: 4.012 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-05/0.1743, allocations: 23.12 kB / 307.3 MB, free: 3.992 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006368/0.1749, allocations: 0.9256 MB / 308.2 MB, free: 3.027 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007785/0.1757, allocations: 471.3 kB / 308.7 MB, free: 2.578 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.1886, allocations: 3.746 MB / 312.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005369/0.1892, allocations: 0.5109 MB / 313 MB, free: 14.23 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006913/0.1898, allocations: 192.7 kB / 313.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006044/0.1905, allocations: 376.6 kB / 313.5 MB, free: 13.67 MB / 282.7 MB Notification: Performance of SimCode: time 2.064e-06/0.1905, allocations: 0 / 313.5 MB, free: 13.67 MB / 282.7 MB Notification: Performance of Templates: time 0.03036/0.2208, allocations: 24.59 MB / 338.1 MB, free: 5.488 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.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.1786894211545587]