Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001567/0.001567, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001118/0.001118, allocations: 163.3 kB / 24.99 MB, free: 8.746 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.9305/0.9305, allocations: 177.1 MB / 205.3 MB, free: 5.625 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.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 273.1 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.94e-05/2.066e-05, allocations: 6.312 kB / 273.1 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007705/0.007725, allocations: 9.563 MB / 282.6 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004886/0.01261, allocations: 3.096 MB / 285.7 MB, free: 5.102 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000861/0.01347, allocations: 75.5 kB / 285.8 MB, free: 5.027 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001163/0.01463, allocations: 0.6635 MB / 286.5 MB, free: 4.359 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001484/0.01612, allocations: 0.8459 MB / 287.3 MB, free: 3.508 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005732/0.01669, allocations: 399.3 kB / 287.7 MB, free: 3.117 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001917/0.01861, allocations: 2.651 MB / 290.4 MB, free: 468 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1087/0.1273, allocations: 1.259 MB / 291.6 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002245/0.1295, allocations: 1.791 MB / 293.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001791/0.1313, allocations: 1.408 MB / 294.8 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000543/0.1319, allocations: 317.6 kB / 295.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006669/0.1325, allocations: 421.8 kB / 295.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007153/0.1332, allocations: 0.9506 MB / 296.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.1343, allocations: 0.9837 MB / 297.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002133/0.1364, allocations: 2.321 MB / 299.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1364, allocations: 0 / 299.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1364, allocations: 0 / 299.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.991e-05/0.1365, allocations: 1.031 kB / 299.8 MB, free: 15.31 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.003248/0.1398, allocations: 3.055 MB / 302.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1398, allocations: 9.156 kB / 302.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007121/0.1405, allocations: 482.4 kB / 303.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001398/0.1419, allocations: 1.437 MB / 304.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.66e-05/0.142, allocations: 162 kB / 304.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001916/0.1422, allocations: 209.6 kB / 305.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001919/0.1441, allocations: 1.728 MB / 306.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.039e-05/0.1441, allocations: 7.172 kB / 306.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.1443, allocations: 91.42 kB / 307 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.682e-05/0.1443, allocations: 105.2 kB / 307.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.1457, allocations: 0.7946 MB / 307.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005808/0.1515, allocations: 7.009 MB / 314.9 MB, free: 6.211 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008824/0.1523, allocations: 0.6776 MB / 315.5 MB, free: 5.531 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006703/0.153, allocations: 0.4976 MB / 316 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001433/0.1532, allocations: 56.97 kB / 316.1 MB, free: 4.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.1532, allocations: 46.39 kB / 316.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.685e-06/0.1532, allocations: 0 / 316.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.004242/0.1574, allocations: 3.167 MB / 319.3 MB, free: 1.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.963e-05/0.1574, allocations: 60.41 kB / 319.4 MB, free: 1.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008511/0.1583, allocations: 1.174 MB / 320.5 MB, free: 0.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.1583, allocations: 49.7 kB / 320.6 MB, free: 456 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005016/0.1588, allocations: 1.144 MB / 321.7 MB, free: 15.31 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002257/0.1591, allocations: 429.6 kB / 322.1 MB, free: 14.9 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003199/0.1594, allocations: 261.1 kB / 322.4 MB, free: 14.63 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.1596, allocations: 0.5433 MB / 322.9 MB, free: 14.08 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/0.16, allocations: 227.8 kB / 323.2 MB, free: 13.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006297/0.1606, allocations: 0.7579 MB / 323.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.1617, allocations: 1.097 MB / 325 MB, free: 11.62 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.1617, allocations: 4 kB / 325 MB, free: 11.62 MB / 282.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00175/0.1635, allocations: 1.334 MB / 326.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.1635, allocations: 12.88 kB / 326.4 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.1635, allocations: 18.94 kB / 326.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005498/0.1641, allocations: 246 kB / 326.6 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/0.1647, allocations: 320.4 kB / 326.9 MB, free: 9.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003545/0.1683, allocations: 6.606 MB / 333.6 MB, free: 2.844 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005437/0.1688, allocations: 103.8 kB / 333.7 MB, free: 2.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.956e-05/0.1689, allocations: 56 kB / 333.7 MB, free: 2.688 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.0004022/0.1693, allocations: 248.8 kB / 334 MB, free: 2.453 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002092/0.1695, allocations: 187.1 kB / 334.1 MB, free: 2.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.1709, allocations: 1.094 MB / 335.2 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.171, allocations: 12 kB / 335.2 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.171, allocations: 4 kB / 335.2 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.171, allocations: 7.922 kB / 335.3 MB, free: 1.137 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.1744, allocations: 3.003 MB / 338.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.1744, allocations: 7.984 kB / 338.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004606/0.1749, allocations: 203.3 kB / 338.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005934/0.1755, allocations: 303.7 kB / 338.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.829e-05/0.1755, allocations: 31.98 kB / 338.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004102/0.1796, allocations: 8.408 MB / 347.2 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1796, allocations: 7.984 kB / 347.2 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.1815, allocations: 1.611 MB / 348.8 MB, free: 3.016 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/0.1819, allocations: 278.9 kB / 349.1 MB, free: 2.742 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.182, allocations: 31.98 kB / 349.1 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004152/0.1824, allocations: 71.92 kB / 349.2 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.1826, allocations: 96.23 kB / 349.3 MB, free: 2.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.787e-05/0.1826, allocations: 43.98 kB / 349.3 MB, free: 2.508 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006565/0.1833, allocations: 0.6922 MB / 350 MB, free: 1.809 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1833, allocations: 3.938 kB / 350 MB, free: 1.805 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0011/0.1844, allocations: 456 kB / 350.5 MB, free: 1.359 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%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000278/0.1847, allocations: 197.5 kB / 350.7 MB, free: 1.172 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.1862, allocations: 1.478 MB / 352.1 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.1862, allocations: 0 / 352.1 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.1873, allocations: 1.258 MB / 353.4 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009932/0.1883, allocations: 390 kB / 353.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004453/0.1928, allocations: 3.817 MB / 357.6 MB, free: 10.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004467/0.1932, allocations: 0.5598 MB / 358.2 MB, free: 9.531 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005847/0.1938, allocations: 292.5 kB / 358.4 MB, free: 9.238 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.194, allocations: 108.5 kB / 358.5 MB, free: 9.133 MB / 314.7 MB Notification: Performance of SimCode: time 1.653e-06/0.194, allocations: 0 / 358.5 MB, free: 9.133 MB / 314.7 MB Notification: Performance of Templates: time 0.02673/0.2208, allocations: 23.39 MB / 381.9 MB, free: 2.129 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.4643263989128172]