Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.001352/0.001352, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.001383/0.001383, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 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.96/0.96, allocations: 173.4 MB / 201.1 MB, free: 9.324 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.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.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.368e-05, allocations: 2.312 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.009653/0.009676, allocations: 10.23 MB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005835/0.01551, allocations: 3.373 MB / 281.6 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001327/0.01684, allocations: 71.56 kB / 281.7 MB, free: 8.676 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00154/0.01838, allocations: 0.7568 MB / 282.4 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002382/0.02076, allocations: 0.9274 MB / 283.4 MB, free: 6.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000842/0.0216, allocations: 427.2 kB / 283.8 MB, free: 6.562 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00249/0.02409, allocations: 2.843 MB / 286.6 MB, free: 3.707 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001543/0.02564, allocations: 1.317 MB / 287.9 MB, free: 2.324 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002843/0.02848, allocations: 1.899 MB / 289.8 MB, free: 432 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.119/0.1475, allocations: 1.469 MB / 291.3 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007519/0.1482, allocations: 334.6 kB / 291.6 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009533/0.1492, allocations: 437.2 kB / 292.1 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007078/0.1499, allocations: 0.9908 MB / 293.1 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.1512, allocations: 1.047 MB / 294.1 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002554/0.1537, allocations: 2.42 MB / 296.5 MB, free: 17.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1537, allocations: 0 / 296.5 MB, free: 17.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1537, allocations: 0 / 296.5 MB, free: 17.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.1537, allocations: 0 / 296.5 MB, free: 17.9 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.003566/0.1573, allocations: 3.206 MB / 299.7 MB, free: 16.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1574, allocations: 10.11 kB / 299.7 MB, free: 16.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007156/0.1581, allocations: 0.5081 MB / 300.2 MB, free: 16.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.1596, allocations: 1.506 MB / 301.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.811e-05/0.1597, allocations: 170.4 kB / 301.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002331/0.16, allocations: 226.5 kB / 302.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002148/0.1621, allocations: 1.805 MB / 303.9 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.169e-05/0.1622, allocations: 10.31 kB / 304 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.1623, allocations: 92.52 kB / 304 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.509e-05/0.1624, allocations: 111 kB / 304.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.1638, allocations: 0.8385 MB / 305 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006113/0.1699, allocations: 7.485 MB / 312.5 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008729/0.1708, allocations: 0.6755 MB / 313.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006711/0.1714, allocations: 0.4988 MB / 313.7 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001627/0.1716, allocations: 58.92 kB / 313.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.1716, allocations: 47.52 kB / 313.8 MB, free: 9.543 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.535e-06/0.1716, allocations: 4 kB / 313.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.004725/0.1763, allocations: 3.302 MB / 317.1 MB, free: 6.848 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.1764, allocations: 68.34 kB / 317.1 MB, free: 6.766 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009619/0.1773, allocations: 1.271 MB / 318.4 MB, free: 5.465 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.387e-05/0.1774, allocations: 56.64 kB / 318.5 MB, free: 5.406 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003679/0.1778, allocations: 1.214 MB / 319.7 MB, free: 4.184 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.1779, allocations: 454.6 kB / 320.1 MB, free: 3.746 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.1782, allocations: 281.1 kB / 320.4 MB, free: 3.461 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.964e-05/0.1782, allocations: 476.8 kB / 320.9 MB, free: 2.992 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003538/0.1786, allocations: 231.8 kB / 321.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.1791, allocations: 0.838 MB / 321.9 MB, free: 1.688 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.1802, allocations: 1.186 MB / 323.1 MB, free: 308 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1802, allocations: 0 / 323.1 MB, free: 308 kB / 266.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001771/0.182, allocations: 1.424 MB / 324.5 MB, free: 14.95 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.182, allocations: 8 kB / 324.5 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.182, allocations: 16 kB / 324.6 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005737/0.1826, allocations: 265.5 kB / 324.8 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006897/0.1833, allocations: 346.2 kB / 325.2 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003869/0.1871, allocations: 6.658 MB / 331.8 MB, free: 7.367 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005065/0.1876, allocations: 99.86 kB / 331.9 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.821e-05/0.1877, allocations: 63.98 kB / 332 MB, free: 7.207 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.0003604/0.1881, allocations: 253 kB / 332.2 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004636/0.1885, allocations: 203.9 kB / 332.4 MB, free: 6.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.19, allocations: 1.146 MB / 333.6 MB, free: 5.609 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.19, allocations: 16 kB / 333.6 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.19, allocations: 4 kB / 333.6 MB, free: 5.59 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.19, allocations: 11.72 kB / 333.6 MB, free: 5.582 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003667/0.1937, allocations: 3.155 MB / 336.7 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1937, allocations: 4 kB / 336.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004861/0.1942, allocations: 214.3 kB / 337 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005925/0.1948, allocations: 292.9 kB / 337.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.146e-05/0.1948, allocations: 43.16 kB / 337.3 MB, free: 1.816 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004433/0.1993, allocations: 8.448 MB / 345.7 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1993, allocations: 4 kB / 345.7 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/0.2015, allocations: 1.695 MB / 347.4 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004049/0.2019, allocations: 290.8 kB / 347.7 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.202, allocations: 34.83 kB / 347.8 MB, free: 6.836 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004334/0.2024, allocations: 75.91 kB / 347.8 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.2026, allocations: 115.5 kB / 347.9 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.938e-05/0.2026, allocations: 36 kB / 348 MB, free: 6.621 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007213/0.2033, allocations: 0.7502 MB / 348.7 MB, free: 5.871 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2033, allocations: 4 kB / 348.7 MB, free: 5.867 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00109/0.2044, allocations: 483.9 kB / 349.2 MB, free: 5.395 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%), (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.0002745/0.2047, allocations: 196.9 kB / 349.4 MB, free: 5.203 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.2064, allocations: 1.528 MB / 350.9 MB, free: 3.668 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2064, allocations: 0 / 350.9 MB, free: 3.668 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.2075, allocations: 1.283 MB / 352.2 MB, free: 2.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.2086, allocations: 429.3 kB / 352.6 MB, free: 1.938 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004891/0.2135, allocations: 4.046 MB / 356.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/0.2139, allocations: 0.5926 MB / 357.3 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000555/0.2145, allocations: 301.7 kB / 357.6 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.2147, allocations: 120.5 kB / 357.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of SimCode: time 8.51e-07/0.2147, allocations: 6.953 kB / 357.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of Templates: time 0.03193/0.2467, allocations: 25.49 MB / 383.2 MB, free: 3.645 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.652235285844654]