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.0009413/0.0009413, allocations: 80.8 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.0009557/0.0009557, allocations: 171.5 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.9561/0.9561, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.352e-06/1.352e-06, allocations: 0 / 273.5 MB, free: 1.129 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.913e-05/2.048e-05, allocations: 6.312 kB / 273.5 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.007754/0.007774, allocations: 10.05 MB / 283.6 MB, free: 7.027 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004625/0.0124, allocations: 3.527 MB / 287.1 MB, free: 3.484 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005877/0.01299, allocations: 71.5 kB / 287.2 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.01406, allocations: 0.7839 MB / 287.9 MB, free: 2.625 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001356/0.01542, allocations: 0.9195 MB / 288.9 MB, free: 1.699 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000507/0.01593, allocations: 431.2 kB / 289.3 MB, free: 1.277 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.09711/0.113, allocations: 2.854 MB / 292.1 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001518/0.1146, allocations: 1.341 MB / 293.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002384/0.1169, allocations: 2.14 MB / 295.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001711/0.1186, allocations: 1.387 MB / 297 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005878/0.1192, allocations: 323.9 kB / 297.3 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006866/0.1199, allocations: 434.6 kB / 297.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006088/0.1205, allocations: 0.9368 MB / 298.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.1215, allocations: 1.017 MB / 299.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001854/0.1234, allocations: 2.37 MB / 302.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.1234, allocations: 1.906 kB / 302.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.1234, allocations: 1.344 kB / 302.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.937e-05/0.1234, allocations: 0.625 kB / 302.1 MB, free: 14.03 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.002489/0.1259, allocations: 2.813 MB / 304.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.694e-05/0.1259, allocations: 12.38 kB / 304.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005781/0.1265, allocations: 413.6 kB / 305.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.1276, allocations: 1.156 MB / 306.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.181e-05/0.1277, allocations: 170.2 kB / 306.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/0.1279, allocations: 224.6 kB / 306.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.1293, allocations: 1.689 MB / 308.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/0.1293, allocations: 2.875 kB / 308.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/0.1294, allocations: 99.61 kB / 308.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.838e-05/0.1295, allocations: 109.6 kB / 308.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008102/0.1303, allocations: 0.657 MB / 309.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/0.1349, allocations: 5.872 MB / 315.3 MB, free: 5.742 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006391/0.1355, allocations: 0.6489 MB / 315.9 MB, free: 5.117 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004655/0.136, allocations: 431.3 kB / 316.3 MB, free: 4.707 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001293/0.1361, allocations: 62.73 kB / 316.4 MB, free: 4.652 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.1361, allocations: 43.56 kB / 316.4 MB, free: 4.598 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.174e-06/0.1361, allocations: 0 / 316.4 MB, free: 4.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.003523/0.1397, allocations: 2.586 MB / 319 MB, free: 2.047 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.813e-05/0.1397, allocations: 64.41 kB / 319.1 MB, free: 1.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005513/0.1402, allocations: 1.057 MB / 320.1 MB, free: 1.098 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.574e-05/0.1403, allocations: 45.7 kB / 320.2 MB, free: 1.047 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002279/0.1405, allocations: 0.9457 MB / 321.1 MB, free: 156 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.1407, allocations: 445.6 kB / 321.6 MB, free: 15.74 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002602/0.141, allocations: 259.9 kB / 321.8 MB, free: 15.51 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.535e-05/0.1411, allocations: 307.6 kB / 322.1 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.1413, allocations: 170.8 kB / 322.3 MB, free: 15.04 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/0.1417, allocations: 0.5864 MB / 322.9 MB, free: 14.31 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008117/0.1425, allocations: 0.9189 MB / 323.8 MB, free: 13.3 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.1426, allocations: 4 kB / 323.8 MB, free: 13.3 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001226/0.1438, allocations: 1.042 MB / 324.8 MB, free: 12.33 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1438, allocations: 12 kB / 324.9 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.1438, allocations: 16.02 kB / 324.9 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004811/0.1443, allocations: 244.8 kB / 325.1 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007672/0.1451, allocations: 336.7 kB / 325.4 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002906/0.148, allocations: 4.745 MB / 330.2 MB, free: 6.824 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000418/0.1484, allocations: 63.94 kB / 330.2 MB, free: 6.762 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-05/0.1485, allocations: 51.98 kB / 330.3 MB, free: 6.711 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.0003018/0.1488, allocations: 205.5 kB / 330.5 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.1489, allocations: 135.9 kB / 330.6 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.1499, allocations: 0.88 MB / 331.5 MB, free: 5.496 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.15, allocations: 15.98 kB / 331.5 MB, free: 5.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.15, allocations: 7.984 kB / 331.5 MB, free: 5.473 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.15, allocations: 3.984 kB / 331.5 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002587/0.1526, allocations: 2.512 MB / 334.1 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.1526, allocations: 4 kB / 334.1 MB, free: 3.199 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004637/0.153, allocations: 211 kB / 334.3 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005422/0.1536, allocations: 302.5 kB / 334.6 MB, free: 2.695 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.603e-05/0.1536, allocations: 35.97 kB / 334.6 MB, free: 2.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003197/0.1568, allocations: 5.956 MB / 340.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.1568, allocations: 4 kB / 340.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.1581, allocations: 1.29 MB / 341.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002755/0.1584, allocations: 213.9 kB / 342.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.1585, allocations: 28 kB / 342.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003476/0.1588, allocations: 51.97 kB / 342.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.159, allocations: 106.9 kB / 342.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-05/0.159, allocations: 31.98 kB / 342.3 MB, free: 10.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003789/0.1594, allocations: 0.5175 MB / 342.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1594, allocations: 0 / 342.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008749/0.1603, allocations: 472.1 kB / 343.2 MB, free: 9.75 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.0002311/0.1605, allocations: 193.2 kB / 343.4 MB, free: 9.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.1619, allocations: 1.181 MB / 344.6 MB, free: 8.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.817e-05/0.1619, allocations: 17.44 kB / 344.6 MB, free: 8.414 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007522/0.1626, allocations: 0.949 MB / 345.6 MB, free: 7.453 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009244/0.1636, allocations: 431 kB / 346 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003975/0.1675, allocations: 3.822 MB / 349.8 MB, free: 3.176 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.1679, allocations: 0.5224 MB / 350.3 MB, free: 2.617 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004528/0.1684, allocations: 221.9 kB / 350.6 MB, free: 2.395 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006386/0.169, allocations: 415.1 kB / 351 MB, free: 1.98 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.169, allocations: 0 / 351 MB, free: 1.98 MB / 298.7 MB Notification: Performance of Templates: time 0.03002/0.1991, allocations: 26.17 MB / 377.1 MB, free: 8.305 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 -s gbode -gbm=radauIIA3 -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.3566021798178554]