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.0009522/0.0009522, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0009867/0.0009867, allocations: 148.9 kB / 24.81 MB, free: 9.27 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.921/0.921, allocations: 173.3 MB / 201.4 MB, free: 9.23 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.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.392e-06/1.392e-06, allocations: 0 / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.165e-05/1.304e-05, allocations: 2.312 kB / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01154/0.01155, allocations: 9.305 MB / 277.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006625/0.01818, allocations: 3.038 MB / 280.8 MB, free: 9.805 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002081/0.02026, allocations: 71.5 kB / 280.8 MB, free: 9.734 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002163/0.02242, allocations: 0.6636 MB / 281.5 MB, free: 9.066 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002906/0.02533, allocations: 0.8458 MB / 282.3 MB, free: 8.215 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008329/0.02616, allocations: 395.4 kB / 282.7 MB, free: 7.828 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002086/0.02825, allocations: 2.637 MB / 285.4 MB, free: 5.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.02941, allocations: 1.268 MB / 286.6 MB, free: 3.848 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.03123, allocations: 2.031 MB / 288.7 MB, free: 1.812 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.03241, allocations: 1.317 MB / 290 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003421/0.03275, allocations: 304 kB / 290.3 MB, free: 200 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.09704/0.1298, allocations: 401.5 kB / 290.7 MB, free: 19.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008391/0.1306, allocations: 0.9014 MB / 291.6 MB, free: 19.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.1321, allocations: 0.9544 MB / 292.5 MB, free: 19.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002315/0.1344, allocations: 2.246 MB / 294.8 MB, free: 19.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1344, allocations: 0 / 294.8 MB, free: 19.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1344, allocations: 1.531 kB / 294.8 MB, free: 19.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.202e-05/0.1345, allocations: 0.6875 kB / 294.8 MB, free: 19.01 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.003449/0.1379, allocations: 2.906 MB / 297.7 MB, free: 17.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.138, allocations: 10.11 kB / 297.7 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006874/0.1387, allocations: 479 kB / 298.2 MB, free: 17.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.1401, allocations: 1.382 MB / 299.5 MB, free: 17.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.894e-05/0.1402, allocations: 162 kB / 299.7 MB, free: 17.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002274/0.1405, allocations: 214.5 kB / 299.9 MB, free: 17.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/0.1424, allocations: 1.583 MB / 301.5 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.187e-05/0.1424, allocations: 15.33 kB / 301.5 MB, free: 16.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.1425, allocations: 88.16 kB / 301.6 MB, free: 16.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.13e-05/0.1426, allocations: 103.6 kB / 301.7 MB, free: 16.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009232/0.1435, allocations: 0.6273 MB / 302.3 MB, free: 16.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005502/0.149, allocations: 6.773 MB / 309.1 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007344/0.1498, allocations: 0.6607 MB / 309.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004919/0.1503, allocations: 458.6 kB / 310.2 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001215/0.1504, allocations: 54.78 kB / 310.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.1504, allocations: 49.22 kB / 310.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.274e-06/0.1504, allocations: 0 / 310.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.003282/0.1537, allocations: 2.479 MB / 312.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.745e-05/0.1537, allocations: 63.97 kB / 312.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007037/0.1544, allocations: 1.135 MB / 314 MB, free: 11.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.1545, allocations: 44.52 kB / 314 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003496/0.1548, allocations: 1.147 MB / 315.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.155, allocations: 439.8 kB / 315.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002207/0.1552, allocations: 265.8 kB / 315.9 MB, free: 9.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.414e-05/0.1553, allocations: 0.5458 MB / 316.4 MB, free: 9.152 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.1555, allocations: 175.4 kB / 316.6 MB, free: 8.984 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003118/0.1558, allocations: 0.7042 MB / 317.3 MB, free: 8.102 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005884/0.1564, allocations: 0.9968 MB / 318.3 MB, free: 6.961 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.1564, allocations: 4 kB / 318.3 MB, free: 6.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001123/0.1575, allocations: 1.212 MB / 319.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1575, allocations: 8 kB / 319.5 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1575, allocations: 12 kB / 319.5 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004193/0.1579, allocations: 247.5 kB / 319.8 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005029/0.1584, allocations: 281.6 kB / 320 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002343/0.1608, allocations: 6.45 MB / 326.5 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004076/0.1612, allocations: 51.94 kB / 326.5 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.056e-05/0.1612, allocations: 51.84 kB / 326.6 MB, free: 14.5 MB / 282.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.0003236/0.1616, allocations: 243.3 kB / 326.8 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001955/0.1618, allocations: 195 kB / 327 MB, free: 14.08 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/0.1629, allocations: 0.9822 MB / 328 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1629, allocations: 12 kB / 328 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1629, allocations: 4 kB / 328 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.1629, allocations: 7.969 kB / 328 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003037/0.166, allocations: 2.834 MB / 330.8 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.166, allocations: 4 kB / 330.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004099/0.1664, allocations: 178.6 kB / 331 MB, free: 10.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005018/0.1669, allocations: 270.1 kB / 331.3 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.451e-05/0.1669, allocations: 39.97 kB / 331.3 MB, free: 9.973 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003652/0.1706, allocations: 8.165 MB / 339.5 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1706, allocations: 4 kB / 339.5 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.1722, allocations: 1.448 MB / 340.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.1725, allocations: 246 kB / 341.2 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.1726, allocations: 32 kB / 341.2 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003494/0.173, allocations: 51.91 kB / 341.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.1731, allocations: 92.39 kB / 341.4 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.209e-05/0.1731, allocations: 31.98 kB / 341.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004592/0.1736, allocations: 0.6225 MB / 342 MB, free: 14.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1736, allocations: 0 / 342 MB, free: 14.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009106/0.1745, allocations: 447.9 kB / 342.5 MB, free: 14.51 MB / 298.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.0002474/0.1747, allocations: 198.5 kB / 342.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.176, allocations: 1.374 MB / 344 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.176, allocations: 0 / 344 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008614/0.1768, allocations: 1.185 MB / 345.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009123/0.1777, allocations: 358.7 kB / 345.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.1821, allocations: 3.75 MB / 349.3 MB, free: 7.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.1825, allocations: 0.5598 MB / 349.9 MB, free: 7 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004463/0.183, allocations: 200.7 kB / 350.1 MB, free: 6.797 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005697/0.1835, allocations: 426 kB / 350.5 MB, free: 6.379 MB / 298.7 MB Notification: Performance of SimCode: time 7.52e-07/0.1835, allocations: 0 / 350.5 MB, free: 6.379 MB / 298.7 MB Notification: Performance of Templates: time 0.02878/0.2123, allocations: 23.71 MB / 374.2 MB, free: 15.11 MB / 330.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 -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.3204024131409824]