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.002632/0.002632, allocations: 95.86 kB / 20.96 MB, free: 3.441 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.001966/0.001966, allocations: 153.1 kB / 24.26 MB, free: 148 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 1.667/1.667, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|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.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.739e-05/2.916e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01426/0.01429, allocations: 9.493 MB / 276.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007664/0.02195, allocations: 3.042 MB / 279.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001693/0.02365, allocations: 67.56 kB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002056/0.0257, allocations: 0.6635 MB / 280.6 MB, free: 9.402 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002865/0.02857, allocations: 0.8421 MB / 281.4 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.02963, allocations: 403.3 kB / 281.8 MB, free: 8.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004016/0.03365, allocations: 2.633 MB / 284.5 MB, free: 5.516 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002363/0.03601, allocations: 1.272 MB / 285.7 MB, free: 4.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003074/0.03909, allocations: 1.785 MB / 287.5 MB, free: 2.391 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002514/0.0416, allocations: 1.399 MB / 288.9 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005988/0.0422, allocations: 320 kB / 289.2 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009481/0.04315, allocations: 419.7 kB / 289.6 MB, free: 272 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1321/0.1752, allocations: 0.9384 MB / 290.6 MB, free: 19.03 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00172/0.1769, allocations: 0.9796 MB / 291.6 MB, free: 19.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005073/0.182, allocations: 4.239 MB / 295.8 MB, free: 18.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.182, allocations: 2.953 kB / 295.8 MB, free: 18.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.182, allocations: 0.5 kB / 295.8 MB, free: 18.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001395/0.1822, allocations: 0.5312 kB / 295.8 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.007793/0.19, allocations: 3.266 MB / 299.1 MB, free: 17.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.19, allocations: 10.98 kB / 299.1 MB, free: 17.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001161/0.1912, allocations: 475.1 kB / 299.5 MB, free: 17.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.1939, allocations: 1.455 MB / 301 MB, free: 16.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.194, allocations: 157.2 kB / 301.1 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003576/0.1944, allocations: 217.3 kB / 301.4 MB, free: 16.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004396/0.1988, allocations: 2.642 MB / 304 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.441e-05/0.1989, allocations: 10.39 kB / 304 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002283/0.1991, allocations: 85.88 kB / 304.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/0.1992, allocations: 102.7 kB / 304.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003096/0.2023, allocations: 1.695 MB / 305.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01274/0.215, allocations: 9.76 MB / 315.7 MB, free: 8.121 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001561/0.2166, allocations: 0.8281 MB / 316.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001191/0.2178, allocations: 0.6107 MB / 317.1 MB, free: 6.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002303/0.218, allocations: 56.95 kB / 317.1 MB, free: 6.715 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.218, allocations: 46.39 kB / 317.2 MB, free: 6.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.895e-06/0.218, allocations: 0 / 317.2 MB, free: 6.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.008329/0.2264, allocations: 3.613 MB / 320.8 MB, free: 3.047 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.2264, allocations: 64.41 kB / 320.9 MB, free: 2.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/0.2282, allocations: 1.564 MB / 322.4 MB, free: 1.402 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.672e-05/0.2283, allocations: 49.7 kB / 322.5 MB, free: 1.348 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005578/0.2289, allocations: 1.212 MB / 323.7 MB, free: 132 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004875/0.2294, allocations: 461.8 kB / 324.1 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005712/0.2299, allocations: 313.1 kB / 324.4 MB, free: 15.37 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003853/0.2303, allocations: 0.5902 MB / 325 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008589/0.2312, allocations: 359.8 kB / 325.4 MB, free: 14.42 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/0.2328, allocations: 0.935 MB / 326.3 MB, free: 13.27 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00248/0.2352, allocations: 1.424 MB / 327.7 MB, free: 11.67 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.2352, allocations: 8 kB / 327.8 MB, free: 11.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00379/0.239, allocations: 1.619 MB / 329.4 MB, free: 10.11 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.2391, allocations: 8 kB / 329.4 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-05/0.2391, allocations: 12 kB / 329.4 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.2401, allocations: 266.3 kB / 329.7 MB, free: 9.816 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.2414, allocations: 334.3 kB / 330 MB, free: 9.508 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007665/0.2491, allocations: 6.871 MB / 336.9 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.2504, allocations: 99.8 kB / 336.9 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/0.2506, allocations: 63.98 kB / 337 MB, free: 2.172 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.00125/0.2518, allocations: 0.5647 MB / 337.6 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004279/0.2523, allocations: 195 kB / 337.8 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003254/0.2555, allocations: 1.278 MB / 339 MB, free: 140 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.2555, allocations: 12 kB / 339.1 MB, free: 128 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.2555, allocations: 7.719 kB / 339.1 MB, free: 124 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.2556, allocations: 11.91 kB / 339.1 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008733/0.2643, allocations: 3.735 MB / 342.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.2643, allocations: 0 / 342.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009303/0.2652, allocations: 209.9 kB / 343 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00123/0.2665, allocations: 315.9 kB / 343.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.2666, allocations: 35.98 kB / 343.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009422/0.276, allocations: 8.632 MB / 352 MB, free: 2.691 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/0.276, allocations: 4 kB / 352 MB, free: 2.688 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004546/0.2805, allocations: 1.932 MB / 353.9 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/0.2817, allocations: 278.9 kB / 354.2 MB, free: 420 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002846/0.282, allocations: 28 kB / 354.2 MB, free: 392 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008839/0.2828, allocations: 75.91 kB / 354.3 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002767/0.2831, allocations: 104.3 kB / 354.4 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.51e-05/0.2832, allocations: 35.98 kB / 354.4 MB, free: 180 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001845/0.2851, allocations: 0.9147 MB / 355.4 MB, free: 15.26 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2851, allocations: 0 / 355.4 MB, free: 15.26 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002171/0.2872, allocations: 459.9 kB / 355.8 MB, free: 14.81 MB / 314.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.0005182/0.2878, allocations: 206.6 kB / 356 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003749/0.2915, allocations: 1.738 MB / 357.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.2915, allocations: 0 / 357.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002519/0.294, allocations: 1.371 MB / 359.1 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002216/0.2962, allocations: 390.2 kB / 359.5 MB, free: 11.08 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00847/0.3047, allocations: 3.951 MB / 363.4 MB, free: 7.043 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00165/0.3064, allocations: 1.153 MB / 364.6 MB, free: 5.844 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001127/0.3075, allocations: 288.5 kB / 364.9 MB, free: 5.555 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003718/0.3079, allocations: 116.5 kB / 365 MB, free: 5.441 MB / 314.7 MB Notification: Performance of SimCode: time 1.943e-06/0.3079, allocations: 0 / 365 MB, free: 5.441 MB / 314.7 MB Notification: Performance of Templates: time 0.06132/0.3692, allocations: 23.27 MB / 388.3 MB, free: 14.54 MB / 346.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.796466398984194]