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.001321/0.001321, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001434/0.001434, allocations: 188.3 kB / 23.72 MB, free: 4.711 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.469/1.469, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.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 0.0015/0.0015, allocations: 47.92 kB / 371 MB, free: 9.309 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2338, allocations: 52.18 MB / 423.1 MB, free: 14.61 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01265/0.2465, allocations: 9.733 MB / 432.9 MB, free: 4.844 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.006603/0.2531, allocations: 3.108 MB / 436 MB, free: 1.727 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002163/0.2552, allocations: 71.5 kB / 436 MB, free: 1.656 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.002618/0.2579, allocations: 0.7179 MB / 436.8 MB, free: 0.9375 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.003383/0.2612, allocations: 0.8194 MB / 437.6 MB, free: 116 kB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.2627, allocations: 399.3 kB / 438 MB, free: 15.72 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.004356/0.267, allocations: 2.544 MB / 440.5 MB, free: 13.17 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.002987/0.27, allocations: 1.3 MB / 441.8 MB, free: 11.81 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.002308/0.2723, allocations: 1.211 MB / 443 MB, free: 10.59 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.002847/0.2752, allocations: 1.534 MB / 444.6 MB, free: 9.055 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.001175/0.2764, allocations: 320 kB / 444.9 MB, free: 8.742 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001893/0.2783, allocations: 427.8 kB / 445.3 MB, free: 8.324 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001586/0.2798, allocations: 0.9115 MB / 446.2 MB, free: 7.41 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002144/0.282, allocations: 1.419 MB / 447.6 MB, free: 5.984 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.005294/0.2873, allocations: 4.161 MB / 451.8 MB, free: 1.809 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2873, allocations: 0 / 451.8 MB, free: 1.809 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.593e-06/0.2873, allocations: 0 / 451.8 MB, free: 1.809 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 9.174e-05/0.2874, allocations: 7.875 kB / 451.8 MB, free: 1.801 MB / 350.1 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.006593/0.294, allocations: 2.896 MB / 454.7 MB, free: 14.86 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.294, allocations: 8.031 kB / 454.7 MB, free: 14.85 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007576/0.2948, allocations: 299.2 kB / 455 MB, free: 14.56 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.002795/0.2976, allocations: 1.475 MB / 456.5 MB, free: 13.04 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.2977, allocations: 160.3 kB / 456.6 MB, free: 12.88 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003413/0.298, allocations: 215.9 kB / 456.8 MB, free: 12.67 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.005002/0.303, allocations: 2.796 MB / 459.6 MB, free: 9.785 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 5.309e-05/0.3031, allocations: 3.984 kB / 459.6 MB, free: 9.781 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002184/0.3033, allocations: 95.97 kB / 459.7 MB, free: 9.688 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/0.3034, allocations: 108.2 kB / 459.8 MB, free: 9.578 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004403/0.3079, allocations: 2.347 MB / 462.2 MB, free: 7.215 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01417/0.322, allocations: 8.367 MB / 470.5 MB, free: 14.6 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.3244, allocations: 1.181 MB / 471.7 MB, free: 13.41 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001855/0.3262, allocations: 0.8968 MB / 472.6 MB, free: 12.51 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002273/0.3265, allocations: 49.97 kB / 472.7 MB, free: 12.46 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.691e-05/0.3265, allocations: 47.5 kB / 472.7 MB, free: 12.41 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=101): time 2.725e-06/0.3265, allocations: 3.938 kB / 472.7 MB, free: 12.4 MB / 382.1 MB
Notification: Performance of matching and sorting (n=116): time 0.01474/0.3413, allocations: 5.738 MB / 478.4 MB, free: 6.633 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.796e-05/0.3413, allocations: 64.41 kB / 478.5 MB, free: 6.559 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002775/0.3441, allocations: 1.433 MB / 479.9 MB, free: 5.113 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001673/0.3443, allocations: 45.7 kB / 480 MB, free: 5.062 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0009863/0.3453, allocations: 1.075 MB / 481.1 MB, free: 3.977 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0004929/0.3458, allocations: 432.3 kB / 481.5 MB, free: 3.551 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004934/0.3463, allocations: 255.5 kB / 481.7 MB, free: 3.293 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002051/0.3465, allocations: 357.9 kB / 482.1 MB, free: 2.938 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.3477, allocations: 0.6871 MB / 482.8 MB, free: 2.25 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/0.3494, allocations: 1.073 MB / 483.8 MB, free: 1.02 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.003139/0.3525, allocations: 1.868 MB / 485.7 MB, free: 14.98 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.3526, allocations: 4 kB / 485.7 MB, free: 14.98 MB / 398.1 MB
Notification: Performance of matching and sorting (n=178) (initialization): time 0.004912/0.3575, allocations: 2.339 MB / 488.1 MB, free: 12.62 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.3575, allocations: 12.25 kB / 488.1 MB, free: 12.61 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.616e-05/0.3575, allocations: 16 kB / 488.1 MB, free: 12.6 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.3586, allocations: 419 kB / 488.5 MB, free: 12.18 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.3599, allocations: 331.5 kB / 488.8 MB, free: 11.85 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008124/0.3681, allocations: 6.735 MB / 495.6 MB, free: 4.777 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.3694, allocations: 99.94 kB / 495.7 MB, free: 4.68 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001905/0.3696, allocations: 59.98 kB / 495.7 MB, free: 4.621 MB / 398.1 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.001443/0.3711, allocations: 0.6896 MB / 496.4 MB, free: 3.922 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004424/0.3715, allocations: 166.9 kB / 496.6 MB, free: 3.758 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004328/0.3758, allocations: 2.051 MB / 498.6 MB, free: 1.676 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.3759, allocations: 12 kB / 498.6 MB, free: 1.664 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/0.3759, allocations: 4 kB / 498.6 MB, free: 1.66 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.3759, allocations: 11.92 kB / 498.6 MB, free: 1.648 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009387/0.3853, allocations: 4.448 MB / 0.4913 GB, free: 13.09 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.3853, allocations: 4 kB / 0.4913 GB, free: 13.09 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009893/0.3863, allocations: 211.7 kB / 0.4915 GB, free: 12.88 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.3875, allocations: 451 kB / 0.4919 GB, free: 12.43 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.3877, allocations: 31.98 kB / 0.492 GB, free: 12.4 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009891/0.3975, allocations: 8.214 MB / 0.5 GB, free: 3.723 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/0.3976, allocations: 11.88 kB / 0.5 GB, free: 3.711 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005936/0.4035, allocations: 3.021 MB / 0.5029 GB, free: 0.625 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.00124/0.4047, allocations: 314.8 kB / 0.5032 GB, free: 324 kB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005189/0.4053, allocations: 32 kB / 0.5033 GB, free: 292 kB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/0.4066, allocations: 75.91 kB / 0.5033 GB, free: 216 kB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/0.4069, allocations: 104.7 kB / 0.5034 GB, free: 112 kB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.407, allocations: 39.98 kB / 0.5035 GB, free: 72 kB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.001929/0.4089, allocations: 0.9809 MB / 0.5044 GB, free: 15.09 MB / 430.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.4089, allocations: 0 / 0.5044 GB, free: 15.09 MB / 430.1 MB
Notification: Performance of remove unused functions: time 0.002123/0.411, allocations: 463.9 kB / 0.5049 GB, free: 14.64 MB / 430.1 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.0004753/0.4115, allocations: 202.1 kB / 0.5051 GB, free: 14.43 MB / 430.1 MB
Notification: Performance of simCode: created initialization part: time 0.004285/0.4158, allocations: 2.075 MB / 0.5071 GB, free: 12.32 MB / 430.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.4158, allocations: 4 kB / 0.5071 GB, free: 12.31 MB / 430.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002757/0.4186, allocations: 1.395 MB / 0.5085 GB, free: 10.86 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.4209, allocations: 424 kB / 0.5089 GB, free: 10.45 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008225/0.4292, allocations: 4.527 MB / 0.5133 GB, free: 5.855 MB / 430.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/0.4311, allocations: 1.803 MB / 0.5151 GB, free: 4.016 MB / 430.1 MB
Notification: Performance of simCode: alias equations: time 0.001147/0.4323, allocations: 365.6 kB / 0.5154 GB, free: 3.652 MB / 430.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004104/0.4327, allocations: 111.4 kB / 0.5155 GB, free: 3.543 MB / 430.1 MB
Notification: Performance of SimCode: time 1.002e-06/0.4327, allocations: 0 / 0.5155 GB, free: 3.543 MB / 430.1 MB
Notification: Performance of Templates: time 0.2224/0.6551, allocations: 25.99 MB / 0.5409 GB, free: 100.6 MB / 446.1 MB
"
[Timeout remaining time 659]
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=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480]
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.8021197421476245]