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.001342/0.001342, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001398/0.001398, allocations: 189.4 kB / 23.72 MB, free: 4.68 MB / 14.72 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.428/1.428, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|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.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002193/0.002193, allocations: 39.92 kB / 370.9 MB, free: 9.344 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2892, allocations: 52.19 MB / 423.1 MB, free: 14.67 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01288/0.3021, allocations: 10.43 MB / 433.6 MB, free: 4.199 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.007719/0.3098, allocations: 3.446 MB / 437 MB, free: 0.7422 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002297/0.3121, allocations: 67.56 kB / 437.1 MB, free: 0.6758 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.002631/0.3148, allocations: 0.8271 MB / 437.9 MB, free: 15.84 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.003049/0.3178, allocations: 0.8854 MB / 438.8 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.3189, allocations: 435.3 kB / 439.2 MB, free: 14.52 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.004137/0.323, allocations: 2.758 MB / 442 MB, free: 11.76 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.00197/0.325, allocations: 1.348 MB / 443.3 MB, free: 10.34 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.002013/0.327, allocations: 1.289 MB / 444.6 MB, free: 9.051 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.002606/0.3296, allocations: 1.623 MB / 446.2 MB, free: 7.422 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0006566/0.3302, allocations: 336 kB / 446.6 MB, free: 7.094 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00104/0.3313, allocations: 439.8 kB / 447 MB, free: 6.664 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001014/0.3323, allocations: 0.9543 MB / 447.9 MB, free: 5.707 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001744/0.334, allocations: 1.509 MB / 449.4 MB, free: 4.191 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.005291/0.3393, allocations: 4.396 MB / 453.8 MB, free: 15.78 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3393, allocations: 0 / 453.8 MB, free: 15.78 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.663e-06/0.3393, allocations: 0 / 453.8 MB, free: 15.78 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 0.0001342/0.3395, allocations: 0 / 453.8 MB, free: 15.78 MB / 366.1 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.007605/0.3471, allocations: 3.045 MB / 456.9 MB, free: 12.69 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3471, allocations: 12.03 kB / 456.9 MB, free: 12.68 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009526/0.3481, allocations: 323 kB / 457.2 MB, free: 12.36 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003365/0.3514, allocations: 1.551 MB / 458.8 MB, free: 10.77 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.3516, allocations: 176.3 kB / 458.9 MB, free: 10.59 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004224/0.3521, allocations: 227.9 kB / 459.2 MB, free: 10.37 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.005949/0.358, allocations: 2.913 MB / 462.1 MB, free: 7.371 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 6.59e-05/0.3581, allocations: 3.938 kB / 462.1 MB, free: 7.367 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002204/0.3583, allocations: 92 kB / 462.2 MB, free: 7.277 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001452/0.3584, allocations: 124.3 kB / 462.3 MB, free: 7.152 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005168/0.3636, allocations: 2.426 MB / 464.7 MB, free: 4.711 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01643/0.38, allocations: 8.88 MB / 473.6 MB, free: 11.55 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.00234/0.3824, allocations: 1.189 MB / 474.8 MB, free: 10.36 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001863/0.3842, allocations: 0.921 MB / 475.7 MB, free: 9.434 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002368/0.3845, allocations: 48.95 kB / 475.8 MB, free: 9.387 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/0.3845, allocations: 47.56 kB / 475.8 MB, free: 9.328 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=105): time 3.487e-06/0.3845, allocations: 0 / 475.8 MB, free: 9.328 MB / 382.1 MB
Notification: Performance of matching and sorting (n=122): time 0.0176/0.4021, allocations: 6.067 MB / 481.9 MB, free: 3.23 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.935e-05/0.4022, allocations: 64.41 kB / 481.9 MB, free: 3.156 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002761/0.405, allocations: 1.569 MB / 483.5 MB, free: 1.578 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.00019/0.4051, allocations: 45.7 kB / 483.5 MB, free: 1.527 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0009653/0.4061, allocations: 1.126 MB / 484.7 MB, free: 396 kB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0004581/0.4066, allocations: 460.1 kB / 485.1 MB, free: 15.93 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004464/0.407, allocations: 275.5 kB / 485.4 MB, free: 15.66 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001195/0.4071, allocations: 301.1 kB / 485.7 MB, free: 15.36 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.4084, allocations: 0.7183 MB / 486.4 MB, free: 14.64 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.41, allocations: 1.134 MB / 487.5 MB, free: 13.32 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002989/0.413, allocations: 1.967 MB / 489.5 MB, free: 11.18 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/0.413, allocations: 4 kB / 489.5 MB, free: 11.17 MB / 398.1 MB
Notification: Performance of matching and sorting (n=191) (initialization): time 0.004645/0.4177, allocations: 2.448 MB / 492 MB, free: 8.699 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.4177, allocations: 12 kB / 492 MB, free: 8.688 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/0.4177, allocations: 12.28 kB / 492 MB, free: 8.676 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.4187, allocations: 419.1 kB / 492.4 MB, free: 8.254 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.4201, allocations: 355.4 kB / 492.7 MB, free: 7.906 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007812/0.4279, allocations: 6.814 MB / 499.5 MB, free: 0.7578 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.4295, allocations: 107.8 kB / 499.7 MB, free: 0.6523 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.4296, allocations: 67.98 kB / 499.7 MB, free: 0.5859 MB / 398.1 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.001359/0.431, allocations: 0.7165 MB / 0.4887 GB, free: 15.86 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003997/0.4314, allocations: 194.8 kB / 0.4889 GB, free: 15.67 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004074/0.4355, allocations: 2.107 MB / 0.4909 GB, free: 13.54 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.4355, allocations: 12 kB / 0.491 GB, free: 13.52 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.4355, allocations: 8 kB / 0.491 GB, free: 13.52 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.936e-05/0.4355, allocations: 11.91 kB / 0.491 GB, free: 13.5 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009011/0.4445, allocations: 4.641 MB / 0.4955 GB, free: 8.746 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.4445, allocations: 4 kB / 0.4955 GB, free: 8.742 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.4456, allocations: 223.7 kB / 0.4957 GB, free: 8.523 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001249/0.4468, allocations: 455.5 kB / 0.4962 GB, free: 8.066 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.4469, allocations: 43.97 kB / 0.4962 GB, free: 8.023 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009313/0.4562, allocations: 8.28 MB / 0.5043 GB, free: 15.29 MB / 430.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.295e-06/0.4562, allocations: 4 kB / 0.5043 GB, free: 15.28 MB / 430.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005889/0.4621, allocations: 3.144 MB / 0.5074 GB, free: 12.06 MB / 430.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.4634, allocations: 330.7 kB / 0.5077 GB, free: 11.74 MB / 430.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002923/0.4637, allocations: 32 kB / 0.5077 GB, free: 11.71 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009731/0.4646, allocations: 87.89 kB / 0.5078 GB, free: 11.62 MB / 430.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002688/0.4649, allocations: 96.7 kB / 0.5079 GB, free: 11.53 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.465, allocations: 43.98 kB / 0.5079 GB, free: 11.48 MB / 430.1 MB
Notification: Performance of sorting global known variables: time 0.001807/0.4668, allocations: 1.066 MB / 0.509 GB, free: 10.42 MB / 430.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.4668, allocations: 7.938 kB / 0.509 GB, free: 10.41 MB / 430.1 MB
Notification: Performance of remove unused functions: time 0.002013/0.4688, allocations: 488.1 kB / 0.5094 GB, free: 9.938 MB / 430.1 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.0004602/0.4693, allocations: 203 kB / 0.5096 GB, free: 9.73 MB / 430.1 MB
Notification: Performance of simCode: created initialization part: time 0.00421/0.4735, allocations: 2.155 MB / 0.5117 GB, free: 7.531 MB / 430.1 MB
Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.4735, allocations: 0 / 0.5117 GB, free: 7.531 MB / 430.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002571/0.4761, allocations: 1.419 MB / 0.5131 GB, free: 6.062 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/0.4787, allocations: 482.3 kB / 0.5136 GB, free: 5.598 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008828/0.4875, allocations: 4.763 MB / 0.5182 GB, free: 0.7578 MB / 430.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001828/0.4893, allocations: 1.875 MB / 0.5201 GB, free: 14.85 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.001433/0.4908, allocations: 390.9 kB / 0.5204 GB, free: 14.46 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003881/0.4912, allocations: 119.4 kB / 0.5206 GB, free: 14.35 MB / 446.1 MB
Notification: Performance of SimCode: time 1.663e-06/0.4912, allocations: 0 / 0.5206 GB, free: 14.35 MB / 446.1 MB
Notification: Performance of Templates: time 0.2771/0.7683, allocations: 28.11 MB / 0.548 GB, free: 102.2 MB / 446.1 MB
"
[Timeout remaining time 659]
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=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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: 6.015808876603842]