Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002111/0.002111, allocations: 106 kB / 21.18 MB, free: 0.707 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.002447/0.002447, allocations: 185.2 kB / 24.47 MB, free: 4.074 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 47.92 kB / 347.6 MB, free: 9.57 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2677, allocations: 49.16 MB / 396.8 MB, free: 9.531 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01228/0.28, allocations: 14.68 MB / 411.5 MB, free: 14.71 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.02793/0.3079, allocations: 19.87 MB / 431.3 MB, free: 14.97 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.003181/0.3111, allocations: 141.5 kB / 431.5 MB, free: 14.88 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.003779/0.3149, allocations: 1.243 MB / 432.7 MB, free: 13.95 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.008452/0.3233, allocations: 2.378 MB / 435.1 MB, free: 12.05 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.004559/0.3279, allocations: 1.407 MB / 436.5 MB, free: 10.98 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01195/0.3398, allocations: 6.5 MB / 443 MB, free: 5.074 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0008482/0.3407, allocations: 274.3 kB / 443.3 MB, free: 4.777 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001934/0.3426, allocations: 1.085 MB / 444.4 MB, free: 3.688 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.00141/0.344, allocations: 1.126 MB / 445.5 MB, free: 2.555 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.3442, allocations: 76 kB / 445.6 MB, free: 2.48 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.004155/0.3484, allocations: 1.156 MB / 446.7 MB, free: 1.324 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0004405/0.3488, allocations: 337.5 kB / 447 MB, free: 0.9922 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.00164/0.3505, allocations: 1.444 MB / 448.5 MB, free: 15.54 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.006171/0.3567, allocations: 4.028 MB / 452.5 MB, free: 11.49 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.3567, allocations: 0 / 452.5 MB, free: 11.49 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.573e-06/0.3567, allocations: 4 kB / 452.5 MB, free: 11.49 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 5.962e-05/0.3567, allocations: 0 / 452.5 MB, free: 11.49 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: 154
 * Number of variables: 154
Notification: Performance of Generate backend data structure: time 0.006184/0.3629, allocations: 3.906 MB / 456.4 MB, free: 7.52 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.3629, allocations: 11.98 kB / 456.4 MB, free: 7.508 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004959/0.3634, allocations: 437.2 kB / 456.9 MB, free: 7.078 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003964/0.3674, allocations: 2.365 MB / 459.2 MB, free: 4.621 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.021e-05/0.3674, allocations: 40.92 kB / 459.3 MB, free: 4.582 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.3676, allocations: 59.95 kB / 459.3 MB, free: 4.523 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.3692, allocations: 0.7304 MB / 460.1 MB, free: 3.789 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.3692, allocations: 0 / 460.1 MB, free: 3.789 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.567e-05/0.3692, allocations: 20 kB / 460.1 MB, free: 3.77 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.69e-05/0.3693, allocations: 23.98 kB / 460.1 MB, free: 3.746 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001776/0.371, allocations: 0.828 MB / 460.9 MB, free: 2.91 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005788/0.3768, allocations: 3.059 MB / 464 MB, free: 15.79 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.3781, allocations: 0.5242 MB / 464.5 MB, free: 15.25 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.3792, allocations: 0.569 MB / 465.1 MB, free: 14.68 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.02759/0.4068, allocations: 13.8 MB / 478.9 MB, free: 0.4922 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008488/0.4076, allocations: 369.5 kB / 479.2 MB, free: 116 kB / 382.1 MB
Notification: Performance of pre-optimization done (n=49): time 2.395e-06/0.4076, allocations: 0 / 479.2 MB, free: 116 kB / 382.1 MB
Notification: Performance of matching and sorting (n=49): time 0.002711/0.4103, allocations: 1.134 MB / 480.4 MB, free: 14.97 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.4104, allocations: 55.41 kB / 480.4 MB, free: 14.91 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004458/0.4148, allocations: 3.115 MB / 483.6 MB, free: 11.79 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 8.4e-05/0.4149, allocations: 37.7 kB / 483.6 MB, free: 11.75 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001557/0.4165, allocations: 1.589 MB / 485.2 MB, free: 10.15 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.4167, allocations: 170.6 kB / 485.3 MB, free: 9.984 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003287/0.417, allocations: 234.4 kB / 485.6 MB, free: 9.75 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001699/0.4172, allocations: 333.9 kB / 485.9 MB, free: 9.418 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006507/0.4178, allocations: 249.8 kB / 486.1 MB, free: 9.176 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.4188, allocations: 0.5979 MB / 486.7 MB, free: 8.402 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002006/0.4208, allocations: 0.8974 MB / 487.6 MB, free: 7.332 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.71e-05/0.4208, allocations: 4 kB / 487.6 MB, free: 7.328 MB / 398.1 MB
Notification: Performance of matching and sorting (n=110) (initialization): time 0.002644/0.4235, allocations: 1.274 MB / 488.9 MB, free: 6.043 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.4235, allocations: 12 kB / 488.9 MB, free: 6.031 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000133/0.4237, allocations: 84.12 kB / 489 MB, free: 5.949 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 4.011e-05/0.4237, allocations: 23.94 kB / 489 MB, free: 5.926 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007621/0.4245, allocations: 199.6 kB / 489.2 MB, free: 5.73 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.135e-05/0.4245, allocations: 27.92 kB / 489.3 MB, free: 5.703 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.4255, allocations: 107.3 kB / 489.4 MB, free: 5.598 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.4256, allocations: 64 kB / 489.4 MB, free: 5.535 MB / 398.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.0008081/0.4265, allocations: 465.4 kB / 489.9 MB, free: 5.07 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000464/0.4269, allocations: 421.3 kB / 490.3 MB, free: 4.656 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002855/0.4298, allocations: 1.215 MB / 491.5 MB, free: 3.43 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.4298, allocations: 4 kB / 491.5 MB, free: 3.426 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4298, allocations: 0 / 491.5 MB, free: 3.426 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.4298, allocations: 0 / 491.5 MB, free: 3.426 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00376/0.4336, allocations: 2.131 MB / 493.6 MB, free: 1.234 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001039/0.4337, allocations: 68 kB / 493.7 MB, free: 1.168 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005166/0.4342, allocations: 95.92 kB / 493.8 MB, free: 1.074 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.4342, allocations: 4 kB / 493.8 MB, free: 1.07 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.229e-05/0.4342, allocations: 31.98 kB / 493.8 MB, free: 1.039 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4342, allocations: 3.938 kB / 493.8 MB, free: 1.035 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4342, allocations: 4 kB / 493.8 MB, free: 1.031 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/0.4369, allocations: 1.344 MB / 495.2 MB, free: 15.66 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009284/0.4378, allocations: 443 kB / 495.6 MB, free: 15.23 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002982/0.4381, allocations: 12 kB / 495.6 MB, free: 15.21 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007172/0.4388, allocations: 27.97 kB / 495.7 MB, free: 15.19 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/0.4391, allocations: 63.86 kB / 495.7 MB, free: 15.12 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/0.4391, allocations: 43.94 kB / 495.8 MB, free: 15.08 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.002899/0.442, allocations: 2.023 MB / 497.8 MB, free: 13.07 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.442, allocations: 64 / 497.8 MB, free: 13.07 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.001371/0.4434, allocations: 0.6047 MB / 498.4 MB, free: 12.46 MB / 414.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.001234/0.4446, allocations: 0.7802 MB / 499.2 MB, free: 11.67 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.001773/0.4464, allocations: 0.7711 MB / 499.9 MB, free: 10.88 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4464, allocations: 4.125 kB / 499.9 MB, free: 10.87 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008503/0.4473, allocations: 419 kB / 0.4886 GB, free: 10.44 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/0.4491, allocations: 0.5384 MB / 0.4892 GB, free: 9.895 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006822/0.4559, allocations: 4.628 MB / 0.4937 GB, free: 5.219 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/0.4573, allocations: 1.718 MB / 0.4954 GB, free: 3.473 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0009748/0.4583, allocations: 361.3 kB / 0.4957 GB, free: 3.113 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.4586, allocations: 163.4 kB / 0.4959 GB, free: 2.953 MB / 414.1 MB
Notification: Performance of SimCode: time 8.41e-07/0.4586, allocations: 4 kB / 0.4959 GB, free: 2.949 MB / 414.1 MB
Notification: Performance of Templates: time 0.06233/0.5209, allocations: 32.86 MB / 0.5279 GB, free: 2.023 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.675960838794708]