Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009115/0.0009115, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009417/0.0009417, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8947/0.8947, allocations: 177.1 MB / 205.3 MB, free: 5.109 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 273.5 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.132e-05/1.242e-05, allocations: 2.312 kB / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.007637/0.007649, allocations: 10.01 MB / 283.5 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004606/0.01226, allocations: 3.531 MB / 287 MB, free: 3.578 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006628/0.01292, allocations: 75.5 kB / 287.1 MB, free: 3.504 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.01404, allocations: 0.7722 MB / 287.8 MB, free: 2.727 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001365/0.01541, allocations: 0.9312 MB / 288.8 MB, free: 1.789 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005507/0.01596, allocations: 427.3 kB / 289.2 MB, free: 1.371 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1067/0.1226, allocations: 2.852 MB / 292 MB, free: 16.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001584/0.1242, allocations: 1.339 MB / 293.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002413/0.1266, allocations: 2.139 MB / 295.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001655/0.1283, allocations: 1.386 MB / 296.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003401/0.1286, allocations: 323.4 kB / 297.2 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005815/0.1292, allocations: 425.8 kB / 297.6 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005939/0.1298, allocations: 0.9433 MB / 298.6 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007599/0.1306, allocations: 1.018 MB / 299.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001726/0.1323, allocations: 2.371 MB / 302 MB, free: 14.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1323, allocations: 2.594 kB / 302 MB, free: 14.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1323, allocations: 0 / 302 MB, free: 14.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.122e-05/0.1323, allocations: 0 / 302 MB, free: 14.28 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.00241/0.1347, allocations: 2.814 MB / 304.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.1348, allocations: 12 kB / 304.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005709/0.1353, allocations: 410.5 kB / 305.2 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.1364, allocations: 1.157 MB / 306.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.772e-05/0.1365, allocations: 171 kB / 306.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001845/0.1367, allocations: 221.2 kB / 306.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.1381, allocations: 1.697 MB / 308.4 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/0.1382, allocations: 0 / 308.4 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.1383, allocations: 91.69 kB / 308.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.077e-05/0.1384, allocations: 117.3 kB / 308.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008365/0.1392, allocations: 0.6532 MB / 309.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004708/0.1439, allocations: 5.87 MB / 315.2 MB, free: 5.992 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006353/0.1445, allocations: 0.651 MB / 315.8 MB, free: 5.363 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004572/0.145, allocations: 434 kB / 316.2 MB, free: 4.953 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001377/0.1451, allocations: 56.97 kB / 316.3 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.1451, allocations: 43.56 kB / 316.3 MB, free: 4.844 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.094e-06/0.1452, allocations: 0 / 316.3 MB, free: 4.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.003501/0.1487, allocations: 2.592 MB / 318.9 MB, free: 2.293 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.725e-05/0.1487, allocations: 64.41 kB / 319 MB, free: 2.219 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005585/0.1492, allocations: 1.064 MB / 320.1 MB, free: 1.34 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.13e-05/0.1493, allocations: 45.7 kB / 320.1 MB, free: 1.289 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/0.1495, allocations: 0.9462 MB / 321 MB, free: 404 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.1497, allocations: 439.6 kB / 321.5 MB, free: 15.99 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002437/0.1499, allocations: 262.8 kB / 321.7 MB, free: 15.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.219e-05/0.15, allocations: 301.1 kB / 322 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.1502, allocations: 170.8 kB / 322.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003839/0.1506, allocations: 0.5867 MB / 322.8 MB, free: 14.57 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007242/0.1513, allocations: 0.9247 MB / 323.7 MB, free: 13.55 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.1513, allocations: 7.984 kB / 323.7 MB, free: 13.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001179/0.1525, allocations: 1.036 MB / 324.8 MB, free: 12.58 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.1525, allocations: 12 kB / 324.8 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.1525, allocations: 12.28 kB / 324.8 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004592/0.153, allocations: 242.5 kB / 325 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/0.1536, allocations: 304.2 kB / 325.3 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002844/0.1564, allocations: 4.753 MB / 330.1 MB, free: 7.094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004004/0.1568, allocations: 55.94 kB / 330.1 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.3e-05/0.1569, allocations: 48 kB / 330.2 MB, free: 6.992 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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,12,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.0003046/0.1572, allocations: 214 kB / 330.4 MB, free: 6.793 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.1573, allocations: 131.9 kB / 330.5 MB, free: 6.664 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.1584, allocations: 0.8842 MB / 331.4 MB, free: 5.773 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.1584, allocations: 12 kB / 331.4 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1584, allocations: 8 kB / 331.4 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.1584, allocations: 12 kB / 331.4 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.161, allocations: 2.511 MB / 333.9 MB, free: 3.477 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.161, allocations: 4 kB / 333.9 MB, free: 3.473 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004217/0.1614, allocations: 190.3 kB / 334.1 MB, free: 3.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005324/0.162, allocations: 305.7 kB / 334.4 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.699e-05/0.162, allocations: 39.92 kB / 334.5 MB, free: 2.953 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003149/0.1652, allocations: 5.94 MB / 340.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1652, allocations: 8 kB / 340.4 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.1665, allocations: 1.29 MB / 341.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005489/0.167, allocations: 214.8 kB / 341.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.1671, allocations: 24 kB / 341.9 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003465/0.1675, allocations: 47.97 kB / 342 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.1676, allocations: 107.5 kB / 342.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.423e-05/0.1677, allocations: 28 kB / 342.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004121/0.1681, allocations: 0.5244 MB / 342.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1681, allocations: 4 kB / 342.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001006/0.1691, allocations: 480.1 kB / 343.1 MB, free: 10.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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,12,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.0002542/0.1693, allocations: 170.1 kB / 343.3 MB, free: 9.875 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.1705, allocations: 1.193 MB / 344.5 MB, free: 8.727 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.015e-05/0.1705, allocations: 20.44 kB / 344.5 MB, free: 8.707 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008174/0.1713, allocations: 0.9391 MB / 345.4 MB, free: 7.758 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009924/0.1723, allocations: 432.8 kB / 345.8 MB, free: 7.355 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00431/0.1766, allocations: 3.821 MB / 349.7 MB, free: 3.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.177, allocations: 0.5263 MB / 350.2 MB, free: 2.918 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004371/0.1775, allocations: 217.9 kB / 350.4 MB, free: 2.699 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006942/0.1781, allocations: 415.1 kB / 350.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1782, allocations: 0 / 350.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of Templates: time 0.0308/0.2089, allocations: 26.16 MB / 377 MB, free: 8.613 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_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.1591892396099865]