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.001099/0.001099, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0008581/0.0008581, allocations: 147.1 kB / 24.89 MB, free: 8.742 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.9243/0.9243, allocations: 173.4 MB / 201.5 MB, free: 8.742 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.042e-06/1.042e-06, allocations: 0 / 268.5 MB, free: 5.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.343e-05/1.447e-05, allocations: 6.25 kB / 268.5 MB, free: 5.969 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007363/0.007378, allocations: 9.372 MB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004373/0.01175, allocations: 3.138 MB / 281 MB, free: 9.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006698/0.01242, allocations: 71.5 kB / 281.1 MB, free: 9.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.0135, allocations: 0.6752 MB / 281.8 MB, free: 8.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001644/0.01514, allocations: 0.8458 MB / 282.6 MB, free: 7.809 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005297/0.01567, allocations: 395.3 kB / 283 MB, free: 7.422 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001687/0.01736, allocations: 2.633 MB / 285.7 MB, free: 4.777 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.01844, allocations: 1.299 MB / 287 MB, free: 3.391 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001617/0.02005, allocations: 2.012 MB / 289 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001241/0.02129, allocations: 1.305 MB / 290.3 MB, free: 68 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.09516/0.1164, allocations: 307.1 kB / 290.6 MB, free: 19.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009939/0.1174, allocations: 409.3 kB / 291 MB, free: 19.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006724/0.1181, allocations: 0.8984 MB / 291.9 MB, free: 19.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001221/0.1193, allocations: 0.9506 MB / 292.8 MB, free: 19.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002315/0.1217, allocations: 2.252 MB / 295.1 MB, free: 18.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1217, allocations: 1.344 kB / 295.1 MB, free: 18.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1217, allocations: 3.906 kB / 295.1 MB, free: 18.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.46e-05/0.1217, allocations: 0 / 295.1 MB, free: 18.84 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.003217/0.1249, allocations: 2.647 MB / 297.7 MB, free: 17.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.125, allocations: 10.08 kB / 297.7 MB, free: 17.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006648/0.1256, allocations: 386.6 kB / 298.1 MB, free: 17.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.1269, allocations: 1.068 MB / 299.2 MB, free: 17.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.104e-05/0.127, allocations: 155.4 kB / 299.3 MB, free: 17.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002229/0.1272, allocations: 213.4 kB / 299.5 MB, free: 17.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001868/0.1291, allocations: 1.624 MB / 301.2 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.447e-05/0.1291, allocations: 12.23 kB / 301.2 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001352/0.1293, allocations: 87.16 kB / 301.3 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.882e-05/0.1293, allocations: 104.6 kB / 301.4 MB, free: 16.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00103/0.1304, allocations: 0.6306 MB / 302 MB, free: 16.8 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004992/0.1354, allocations: 5.48 MB / 307.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006837/0.1361, allocations: 0.6582 MB / 308.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004603/0.1365, allocations: 431.5 kB / 308.6 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001324/0.1366, allocations: 50.58 kB / 308.6 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.1367, allocations: 47.25 kB / 308.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.094e-06/0.1367, allocations: 0 / 308.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.003492/0.1402, allocations: 2.46 MB / 311.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.947e-05/0.1402, allocations: 62.59 kB / 311.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000563/0.1407, allocations: 0.966 MB / 312.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.869e-05/0.1408, allocations: 47.73 kB / 312.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.141, allocations: 0.8802 MB / 313.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.1412, allocations: 427.2 kB / 313.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.1414, allocations: 237.7 kB / 313.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.856e-05/0.1414, allocations: 362.5 kB / 314.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.1416, allocations: 169.5 kB / 314.2 MB, free: 11.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.1419, allocations: 0.5258 MB / 314.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005904/0.1425, allocations: 0.8507 MB / 315.6 MB, free: 9.516 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.1425, allocations: 4 kB / 315.6 MB, free: 9.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001053/0.1435, allocations: 0.9698 MB / 316.6 MB, free: 8.605 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1435, allocations: 14.97 kB / 316.6 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1435, allocations: 12.61 kB / 316.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004248/0.144, allocations: 238.7 kB / 316.8 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005945/0.1446, allocations: 310.5 kB / 317.1 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002101/0.1467, allocations: 4.719 MB / 321.9 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003841/0.147, allocations: 47.98 kB / 321.9 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.843e-05/0.1471, allocations: 51.98 kB / 322 MB, free: 3.055 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.0002871/0.1474, allocations: 191.6 kB / 322.1 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.1475, allocations: 139.3 kB / 322.3 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008722/0.1484, allocations: 0.8413 MB / 323.1 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.1484, allocations: 12 kB / 323.1 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1484, allocations: 4 kB / 323.1 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1484, allocations: 3.984 kB / 323.1 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.1507, allocations: 2.387 MB / 325.5 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.1507, allocations: 0 / 325.5 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004495/0.1511, allocations: 194.1 kB / 325.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005461/0.1517, allocations: 303.6 kB / 326 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.687e-05/0.1517, allocations: 27.98 kB / 326 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003364/0.1551, allocations: 5.912 MB / 332 MB, free: 9.016 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.1551, allocations: 4 kB / 332 MB, free: 9.012 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.1564, allocations: 1.249 MB / 333.2 MB, free: 7.734 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002616/0.1567, allocations: 190.6 kB / 333.4 MB, free: 7.551 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.1568, allocations: 39.98 kB / 333.4 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003258/0.1571, allocations: 43.97 kB / 333.5 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.1572, allocations: 100.1 kB / 333.6 MB, free: 7.375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.173e-05/0.1573, allocations: 27.98 kB / 333.6 MB, free: 7.348 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003588/0.1576, allocations: 478.6 kB / 334.1 MB, free: 6.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1576, allocations: 0 / 334.1 MB, free: 6.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009041/0.1585, allocations: 447.9 kB / 334.5 MB, free: 6.492 MB / 282.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.000237/0.1588, allocations: 184.6 kB / 334.7 MB, free: 6.32 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.1599, allocations: 1.13 MB / 335.8 MB, free: 5.211 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.781e-05/0.1599, allocations: 14.44 kB / 335.8 MB, free: 5.199 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007571/0.1607, allocations: 0.9326 MB / 336.8 MB, free: 4.254 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008494/0.1615, allocations: 363 kB / 337.1 MB, free: 3.91 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004147/0.1657, allocations: 3.593 MB / 340.7 MB, free: 280 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004255/0.1661, allocations: 0.4962 MB / 341.2 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000433/0.1665, allocations: 200.7 kB / 341.4 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005757/0.1671, allocations: 365.1 kB / 341.8 MB, free: 15.19 MB / 298.7 MB Notification: Performance of SimCode: time 8.62e-07/0.1671, allocations: 0 / 341.8 MB, free: 15.19 MB / 298.7 MB Notification: Performance of Templates: time 0.02859/0.1957, allocations: 23.64 MB / 365.4 MB, free: 7.98 MB / 314.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 -s gbode -gbm=radauIIA3 -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.1772758420556784]