Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001587/0.001587, allocations: 112 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.001703/0.001703, allocations: 187.8 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.468/1.468, 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.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel")
translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 51.91 kB / 370.9 MB, free: 9.379 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2319, allocations: 52.19 MB / 423.1 MB, free: 14.72 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01625/0.2482, allocations: 15.37 MB / 438.5 MB, free: 15.29 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.02627/0.2744, allocations: 20.82 MB / 459.3 MB, free: 10.39 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002608/0.277, allocations: 134.6 kB / 459.4 MB, free: 10.25 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.003464/0.2805, allocations: 1.266 MB / 460.7 MB, free: 8.984 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.007752/0.2882, allocations: 2.421 MB / 463.1 MB, free: 6.543 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.004369/0.2926, allocations: 1.453 MB / 464.6 MB, free: 5.086 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01118/0.3038, allocations: 6.653 MB / 471.2 MB, free: 14.41 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0006741/0.3045, allocations: 278.2 kB / 471.5 MB, free: 14.11 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001734/0.3062, allocations: 1.174 MB / 472.7 MB, free: 12.93 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001398/0.3076, allocations: 1.141 MB / 473.8 MB, free: 11.79 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.000218/0.3078, allocations: 79.94 kB / 473.9 MB, free: 11.71 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.004031/0.3118, allocations: 1.479 MB / 475.4 MB, free: 10.23 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.000427/0.3123, allocations: 341.5 kB / 475.7 MB, free: 9.891 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001671/0.3139, allocations: 1.428 MB / 477.1 MB, free: 8.453 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.00623/0.3202, allocations: 3.993 MB / 481.1 MB, free: 4.441 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3202, allocations: 0 / 481.1 MB, free: 4.441 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.423e-06/0.3202, allocations: 0 / 481.1 MB, free: 4.441 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 7.085e-05/0.3203, allocations: 0 / 481.1 MB, free: 4.441 MB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 154
 * Number of variables: 154
Notification: Performance of Generate backend data structure: time 0.006363/0.3266, allocations: 3.89 MB / 485 MB, free: 0.4922 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3267, allocations: 16.02 kB / 485 MB, free: 488 kB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005081/0.3272, allocations: 437.2 kB / 485.5 MB, free: 48 kB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003951/0.3311, allocations: 2.349 MB / 487.8 MB, free: 13.61 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.236e-05/0.3312, allocations: 37 kB / 487.8 MB, free: 13.57 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.3313, allocations: 55.95 kB / 487.9 MB, free: 13.51 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.3328, allocations: 0.7343 MB / 488.6 MB, free: 12.77 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3328, allocations: 0 / 488.6 MB, free: 12.77 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.372e-05/0.3329, allocations: 20 kB / 488.7 MB, free: 12.75 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.264e-05/0.3329, allocations: 19.98 kB / 488.7 MB, free: 12.73 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.3347, allocations: 0.8241 MB / 489.5 MB, free: 11.91 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005441/0.3401, allocations: 3.039 MB / 492.5 MB, free: 8.797 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.3414, allocations: 0.5203 MB / 493.1 MB, free: 8.27 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.3425, allocations: 0.5692 MB / 493.6 MB, free: 7.699 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.02581/0.3683, allocations: 13.78 MB / 0.4955 GB, free: 9.535 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008522/0.3691, allocations: 357.7 kB / 0.4959 GB, free: 9.172 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=49): time 2.234e-06/0.3691, allocations: 0 / 0.4959 GB, free: 9.172 MB / 414.1 MB
Notification: Performance of matching and sorting (n=49): time 0.002589/0.3717, allocations: 1.13 MB / 0.497 GB, free: 8.035 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/0.3718, allocations: 59.34 kB / 0.497 GB, free: 7.965 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004006/0.3758, allocations: 3.09 MB / 0.5 GB, free: 4.875 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.199e-05/0.3758, allocations: 37.7 kB / 0.5001 GB, free: 4.832 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001485/0.3773, allocations: 1.589 MB / 0.5016 GB, free: 3.234 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.3775, allocations: 174.6 kB / 0.5018 GB, free: 3.062 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003349/0.3778, allocations: 230.3 kB / 0.502 GB, free: 2.832 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001731/0.378, allocations: 341.9 kB / 0.5023 GB, free: 2.492 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000629/0.3786, allocations: 237.9 kB / 0.5026 GB, free: 2.258 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009492/0.3796, allocations: 0.5979 MB / 0.5031 GB, free: 1.48 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.00162/0.3812, allocations: 0.8974 MB / 0.504 GB, free: 420 kB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.3812, allocations: 7.938 kB / 0.504 GB, free: 412 kB / 414.1 MB
Notification: Performance of matching and sorting (n=110) (initialization): time 0.00232/0.3835, allocations: 1.262 MB / 0.5053 GB, free: 15.12 MB / 430.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.3836, allocations: 11.44 kB / 0.5053 GB, free: 15.12 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/0.3837, allocations: 83.98 kB / 0.5053 GB, free: 15.04 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.142e-05/0.3837, allocations: 20.78 kB / 0.5054 GB, free: 15.02 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007668/0.3845, allocations: 211.6 kB / 0.5056 GB, free: 14.81 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/0.3845, allocations: 19.94 kB / 0.5056 GB, free: 14.79 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000984/0.3855, allocations: 119.2 kB / 0.5057 GB, free: 14.67 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.3856, allocations: 64 kB / 0.5058 GB, free: 14.61 MB / 430.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 56
 * Number of states: 0 ()
 * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (102):
 * Single equations (assignments): 98
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 4
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.000804/0.3864, allocations: 457.4 kB / 0.5062 GB, free: 14.15 MB / 430.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004392/0.3869, allocations: 413.4 kB / 0.5066 GB, free: 13.75 MB / 430.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002851/0.3897, allocations: 1.211 MB / 0.5078 GB, free: 12.54 MB / 430.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.3897, allocations: 4 kB / 0.5078 GB, free: 12.53 MB / 430.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3897, allocations: 4 kB / 0.5078 GB, free: 12.53 MB / 430.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.3897, allocations: 7.984 kB / 0.5078 GB, free: 12.52 MB / 430.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003788/0.3935, allocations: 2.115 MB / 0.5099 GB, free: 10.34 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001085/0.3936, allocations: 68 kB / 0.5099 GB, free: 10.27 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005259/0.3942, allocations: 91.92 kB / 0.51 GB, free: 10.18 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.3942, allocations: 3.938 kB / 0.51 GB, free: 10.18 MB / 430.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.777e-05/0.3942, allocations: 35.98 kB / 0.51 GB, free: 10.14 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.3942, allocations: 4 kB / 0.5101 GB, free: 10.14 MB / 430.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3942, allocations: 4 kB / 0.5101 GB, free: 10.14 MB / 430.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002548/0.3968, allocations: 1.343 MB / 0.5114 GB, free: 8.77 MB / 430.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009042/0.3977, allocations: 439.1 kB / 0.5118 GB, free: 8.34 MB / 430.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002968/0.398, allocations: 8 kB / 0.5118 GB, free: 8.332 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007129/0.3987, allocations: 27.97 kB / 0.5118 GB, free: 8.305 MB / 430.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.3989, allocations: 75.86 kB / 0.5119 GB, free: 8.23 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.248e-05/0.3989, allocations: 36 kB / 0.5119 GB, free: 8.195 MB / 430.1 MB
Notification: Performance of sorting global known variables: time 0.002781/0.4017, allocations: 2.007 MB / 0.5139 GB, free: 6.195 MB / 430.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.4017, allocations: 0 / 0.5139 GB, free: 6.195 MB / 430.1 MB
Notification: Performance of remove unused functions: time 0.001427/0.4031, allocations: 0.5969 MB / 0.5145 GB, free: 5.598 MB / 430.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 3
 * Number of states: 2 (c1.vinternal,c2.vinternal)
 * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2)
 * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (42):
 * Single equations (assignments): 32
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 4
 * When equations: 6
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.001223/0.4044, allocations: 0.7691 MB / 0.5152 GB, free: 4.82 MB / 430.1 MB
Notification: Performance of simCode: created initialization part: time 0.00175/0.4061, allocations: 0.7824 MB / 0.516 GB, free: 4.012 MB / 430.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4061, allocations: 0 / 0.516 GB, free: 4.012 MB / 430.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008295/0.4069, allocations: 423.8 kB / 0.5164 GB, free: 3.574 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002771/0.4097, allocations: 0.6396 MB / 0.517 GB, free: 2.93 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006997/0.4167, allocations: 4.589 MB / 0.5215 GB, free: 14.29 MB / 446.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001373/0.4181, allocations: 1.718 MB / 0.5232 GB, free: 12.54 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.001084/0.4192, allocations: 361.3 kB / 0.5235 GB, free: 12.18 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002483/0.4194, allocations: 151.4 kB / 0.5237 GB, free: 12.04 MB / 446.1 MB
Notification: Performance of SimCode: time 9.12e-07/0.4194, allocations: 4 kB / 0.5237 GB, free: 12.03 MB / 446.1 MB
Notification: Performance of Templates: time 0.2227/0.6421, allocations: 32.7 MB / 0.5556 GB, free: 100.5 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.816619088873267]