Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001417, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001524/0.001524, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 230.3 MB / 258 MB, free: 8.273 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord")
translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.89 kB / 378.7 MB, free: 2.824 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2294, allocations: 53.37 MB / 432.1 MB, free: 7.102 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01614/0.2456, allocations: 14.77 MB / 446.9 MB, free: 8.273 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.02801/0.2736, allocations: 20.79 MB / 467.7 MB, free: 3.398 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002864/0.2764, allocations: 130.6 kB / 467.8 MB, free: 3.27 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.003693/0.2801, allocations: 1.24 MB / 469.1 MB, free: 2.027 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.009518/0.2896, allocations: 2.366 MB / 471.4 MB, free: 15.64 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.005951/0.2956, allocations: 1.468 MB / 472.9 MB, free: 14.17 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01144/0.307, allocations: 6.599 MB / 479.5 MB, free: 7.551 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000706/0.3077, allocations: 277.7 kB / 479.8 MB, free: 7.25 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.3095, allocations: 1.147 MB / 480.9 MB, free: 6.098 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.3109, allocations: 1.11 MB / 482 MB, free: 4.98 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0002037/0.3111, allocations: 76 kB / 482.1 MB, free: 4.906 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.004153/0.3152, allocations: 1.475 MB / 483.6 MB, free: 3.43 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0003893/0.3156, allocations: 329.6 kB / 483.9 MB, free: 3.105 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.00151/0.3171, allocations: 1.378 MB / 485.3 MB, free: 1.719 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.005619/0.3227, allocations: 3.791 MB / 489.1 MB, free: 13.91 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3227, allocations: 0 / 489.1 MB, free: 13.91 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.493e-06/0.3227, allocations: 0 / 489.1 MB, free: 13.91 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 5.506e-05/0.3228, allocations: 8 kB / 489.1 MB, free: 13.9 MB / 398.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.005958/0.3288, allocations: 3.726 MB / 492.8 MB, free: 10.12 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.3288, allocations: 16.02 kB / 492.8 MB, free: 10.1 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004652/0.3293, allocations: 409.4 kB / 493.2 MB, free: 9.699 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003704/0.333, allocations: 2.291 MB / 495.5 MB, free: 7.312 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.333, allocations: 37 kB / 495.5 MB, free: 7.273 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.3331, allocations: 55.98 kB / 495.6 MB, free: 7.219 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.3346, allocations: 0.7343 MB / 496.3 MB, free: 6.48 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3346, allocations: 0 / 496.3 MB, free: 6.48 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.421e-05/0.3347, allocations: 20 kB / 496.3 MB, free: 6.461 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/0.3347, allocations: 23.98 kB / 496.4 MB, free: 6.438 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.3365, allocations: 0.8163 MB / 497.2 MB, free: 5.617 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005442/0.3419, allocations: 3.003 MB / 0.4885 GB, free: 2.543 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.3432, allocations: 0.5203 MB / 0.489 GB, free: 2.016 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.3442, allocations: 0.5653 MB / 0.4895 GB, free: 1.445 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0272/0.3714, allocations: 13.78 MB / 0.503 GB, free: 3.277 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008225/0.3722, allocations: 365.7 kB / 0.5033 GB, free: 2.906 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=49): time 2.644e-06/0.3722, allocations: 0 / 0.5033 GB, free: 2.906 MB / 414.1 MB
Notification: Performance of matching and sorting (n=49): time 0.00248/0.3747, allocations: 1.103 MB / 0.5044 GB, free: 1.797 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.214e-05/0.3748, allocations: 63.34 kB / 0.5045 GB, free: 1.723 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003793/0.3786, allocations: 2.939 MB / 0.5073 GB, free: 14.77 MB / 430.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.814e-05/0.3786, allocations: 37.7 kB / 0.5074 GB, free: 14.73 MB / 430.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001367/0.38, allocations: 1.498 MB / 0.5088 GB, free: 13.22 MB / 430.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001993/0.3802, allocations: 174.6 kB / 0.509 GB, free: 13.05 MB / 430.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000332/0.3805, allocations: 226.4 kB / 0.5092 GB, free: 12.82 MB / 430.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001576/0.3807, allocations: 341.9 kB / 0.5095 GB, free: 12.48 MB / 430.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006534/0.3813, allocations: 245.8 kB / 0.5098 GB, free: 12.24 MB / 430.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009197/0.3823, allocations: 0.5979 MB / 0.5104 GB, free: 11.47 MB / 430.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001603/0.3839, allocations: 0.8974 MB / 0.5112 GB, free: 10.4 MB / 430.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.3839, allocations: 7.938 kB / 0.5112 GB, free: 10.39 MB / 430.1 MB
Notification: Performance of matching and sorting (n=110) (initialization): time 0.002443/0.3863, allocations: 1.243 MB / 0.5125 GB, free: 9.141 MB / 430.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.3863, allocations: 8 kB / 0.5125 GB, free: 9.133 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001139/0.3865, allocations: 84.12 kB / 0.5125 GB, free: 9.051 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.663e-05/0.3865, allocations: 20 kB / 0.5126 GB, free: 9.031 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007835/0.3873, allocations: 199.6 kB / 0.5128 GB, free: 8.836 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.994e-05/0.3873, allocations: 27.92 kB / 0.5128 GB, free: 8.809 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.3884, allocations: 107.3 kB / 0.5129 GB, free: 8.703 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.3885, allocations: 68 kB / 0.513 GB, free: 8.637 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.0007973/0.3893, allocations: 440.5 kB / 0.5134 GB, free: 8.199 MB / 430.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004177/0.3897, allocations: 405.4 kB / 0.5138 GB, free: 7.801 MB / 430.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002809/0.3926, allocations: 1.186 MB / 0.5149 GB, free: 6.609 MB / 430.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.3926, allocations: 11.98 kB / 0.5149 GB, free: 6.598 MB / 430.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3926, allocations: 0 / 0.5149 GB, free: 6.598 MB / 430.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3926, allocations: 0 / 0.5149 GB, free: 6.598 MB / 430.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003653/0.3962, allocations: 2.084 MB / 0.517 GB, free: 4.449 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-05/0.3963, allocations: 68 kB / 0.517 GB, free: 4.383 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/0.3968, allocations: 95.84 kB / 0.5171 GB, free: 4.289 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.3968, allocations: 0 / 0.5171 GB, free: 4.289 MB / 430.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.926e-05/0.3969, allocations: 40.06 kB / 0.5172 GB, free: 4.25 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.3969, allocations: 0 / 0.5172 GB, free: 4.25 MB / 430.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3969, allocations: 0 / 0.5172 GB, free: 4.25 MB / 430.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.3994, allocations: 1.307 MB / 0.5184 GB, free: 2.918 MB / 430.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0008632/0.4003, allocations: 427.2 kB / 0.5188 GB, free: 2.5 MB / 430.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002887/0.4006, allocations: 8 kB / 0.5188 GB, free: 2.492 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007089/0.4013, allocations: 36.02 kB / 0.5189 GB, free: 2.457 MB / 430.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.4014, allocations: 63.81 kB / 0.5189 GB, free: 2.395 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.89e-05/0.4015, allocations: 43.98 kB / 0.519 GB, free: 2.352 MB / 430.1 MB
Notification: Performance of sorting global known variables: time 0.002655/0.4042, allocations: 1.899 MB / 0.5208 GB, free: 464 kB / 430.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.4042, allocations: 0 / 0.5208 GB, free: 464 kB / 430.1 MB
Notification: Performance of remove unused functions: time 0.00139/0.4056, allocations: 0.5892 MB / 0.5214 GB, free: 15.86 MB / 446.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.001186/0.4067, allocations: 0.7729 MB / 0.5222 GB, free: 15.08 MB / 446.1 MB
Notification: Performance of simCode: created initialization part: time 0.001718/0.4085, allocations: 0.7741 MB / 0.5229 GB, free: 14.28 MB / 446.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4085, allocations: 1.25 kB / 0.5229 GB, free: 14.28 MB / 446.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008168/0.4093, allocations: 427.1 kB / 0.5233 GB, free: 13.84 MB / 446.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.4119, allocations: 0.6076 MB / 0.5239 GB, free: 13.23 MB / 446.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006522/0.4184, allocations: 4.39 MB / 0.5282 GB, free: 8.793 MB / 446.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/0.4197, allocations: 1.672 MB / 0.5298 GB, free: 7.09 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.001139/0.4208, allocations: 361.1 kB / 0.5302 GB, free: 6.73 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.4211, allocations: 151.4 kB / 0.5303 GB, free: 6.582 MB / 446.1 MB
Notification: Performance of SimCode: time 1.413e-06/0.4211, allocations: 0 / 0.5303 GB, free: 6.582 MB / 446.1 MB
Notification: Performance of Templates: time 0.2591/0.6802, allocations: 31.92 MB / 0.5615 GB, free: 89.34 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.826699237339199]