Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001369/0.001369, 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.001399/0.001399, allocations: 186.9 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.427/1.427, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.InvertersApartRecord,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.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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 51.92 kB / 370.9 MB, free: 9.395 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2424, allocations: 52.18 MB / 423.1 MB, free: 14.72 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01574/0.2582, allocations: 14.77 MB / 437.9 MB, free: 15.89 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.02721/0.2854, allocations: 20.75 MB / 458.6 MB, free: 11.05 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002238/0.2876, allocations: 134.5 kB / 458.8 MB, free: 10.92 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.003472/0.2911, allocations: 1.243 MB / 460 MB, free: 9.676 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.007016/0.2981, allocations: 2.363 MB / 462.4 MB, free: 7.293 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.004254/0.3024, allocations: 1.461 MB / 463.8 MB, free: 5.828 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01234/0.3147, allocations: 6.529 MB / 470.4 MB, free: 15.28 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0007424/0.3154, allocations: 269.7 kB / 470.6 MB, free: 14.99 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001997/0.3174, allocations: 1.147 MB / 471.8 MB, free: 13.84 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001913/0.3193, allocations: 1.11 MB / 472.9 MB, free: 12.72 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0002696/0.3196, allocations: 76 kB / 473 MB, free: 12.64 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.004379/0.324, allocations: 1.483 MB / 474.4 MB, free: 11.16 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0004499/0.3244, allocations: 325.6 kB / 474.8 MB, free: 10.84 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001867/0.3263, allocations: 1.362 MB / 476.1 MB, free: 9.469 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.006165/0.3325, allocations: 3.791 MB / 479.9 MB, free: 5.66 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3325, allocations: 0 / 479.9 MB, free: 5.66 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.803e-06/0.3325, allocations: 0 / 479.9 MB, free: 5.66 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 7.261e-05/0.3326, allocations: 3.984 kB / 479.9 MB, free: 5.656 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.006382/0.3389, allocations: 3.734 MB / 483.6 MB, free: 1.863 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.339, allocations: 12.03 kB / 483.7 MB, free: 1.852 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005009/0.3395, allocations: 413.4 kB / 484.1 MB, free: 1.445 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003838/0.3433, allocations: 2.295 MB / 486.4 MB, free: 15.05 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/0.3434, allocations: 40.98 kB / 486.4 MB, free: 15.01 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.3435, allocations: 63.94 kB / 486.5 MB, free: 14.95 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.345, allocations: 0.7342 MB / 487.2 MB, free: 14.2 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.345, allocations: 0 / 487.2 MB, free: 14.2 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.306e-05/0.3451, allocations: 24 kB / 487.2 MB, free: 14.18 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.3451, allocations: 19.98 kB / 487.2 MB, free: 14.16 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001702/0.3468, allocations: 0.8202 MB / 488.1 MB, free: 13.34 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005491/0.3523, allocations: 2.992 MB / 491 MB, free: 10.28 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.3536, allocations: 0.5164 MB / 491.6 MB, free: 9.754 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.3547, allocations: 0.5692 MB / 492.1 MB, free: 9.184 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.02545/0.3801, allocations: 13.76 MB / 0.494 GB, free: 11.04 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008412/0.3809, allocations: 357.7 kB / 0.4944 GB, free: 10.67 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=49): time 2.285e-06/0.3809, allocations: 4 kB / 0.4944 GB, free: 10.67 MB / 414.1 MB
Notification: Performance of matching and sorting (n=49): time 0.002524/0.3835, allocations: 1.11 MB / 0.4955 GB, free: 9.551 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.3835, allocations: 67.38 kB / 0.4955 GB, free: 9.473 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003841/0.3874, allocations: 2.927 MB / 0.4984 GB, free: 6.535 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.463e-05/0.3874, allocations: 37.7 kB / 0.4984 GB, free: 6.492 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001411/0.3889, allocations: 1.498 MB / 0.4999 GB, free: 4.984 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.3891, allocations: 174.6 kB / 0.5001 GB, free: 4.812 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003271/0.3894, allocations: 230.4 kB / 0.5003 GB, free: 4.582 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001634/0.3895, allocations: 338 kB / 0.5006 GB, free: 4.246 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006703/0.3902, allocations: 245.8 kB / 0.5008 GB, free: 4.004 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009327/0.3911, allocations: 0.5979 MB / 0.5014 GB, free: 3.227 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.3928, allocations: 0.8974 MB / 0.5023 GB, free: 2.156 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.059e-05/0.3928, allocations: 11.88 kB / 0.5023 GB, free: 2.145 MB / 414.1 MB
Notification: Performance of matching and sorting (n=110) (initialization): time 0.002543/0.3953, allocations: 1.247 MB / 0.5035 GB, free: 0.8867 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.3953, allocations: 8 kB / 0.5035 GB, free: 0.8789 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001143/0.3955, allocations: 80 kB / 0.5036 GB, free: 0.8008 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.34e-05/0.3955, allocations: 20 kB / 0.5036 GB, free: 0.7812 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007626/0.3963, allocations: 195.6 kB / 0.5038 GB, free: 0.5898 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.851e-05/0.3963, allocations: 27.92 kB / 0.5038 GB, free: 0.5625 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.3974, allocations: 123.3 kB / 0.504 GB, free: 452 kB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.3975, allocations: 64 kB / 0.504 GB, free: 388 kB / 414.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.0008411/0.3983, allocations: 433.4 kB / 0.5044 GB, free: 15.94 MB / 430.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000425/0.3988, allocations: 397.5 kB / 0.5048 GB, free: 15.55 MB / 430.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002907/0.4017, allocations: 1.201 MB / 0.506 GB, free: 14.35 MB / 430.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.4017, allocations: 4 kB / 0.506 GB, free: 14.35 MB / 430.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.4017, allocations: 0 / 0.506 GB, free: 14.35 MB / 430.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.4017, allocations: 0 / 0.506 GB, free: 14.35 MB / 430.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003881/0.4056, allocations: 2.064 MB / 0.508 GB, free: 12.21 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001028/0.4057, allocations: 71.98 kB / 0.5081 GB, free: 12.14 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005309/0.4062, allocations: 95.92 kB / 0.5082 GB, free: 12.05 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.4062, allocations: 0 / 0.5082 GB, free: 12.05 MB / 430.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.595e-05/0.4063, allocations: 32 kB / 0.5082 GB, free: 12.02 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/0.4063, allocations: 3.984 kB / 0.5082 GB, free: 12.02 MB / 430.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.4063, allocations: 4 kB / 0.5082 GB, free: 12.01 MB / 430.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002579/0.4089, allocations: 1.322 MB / 0.5095 GB, free: 10.66 MB / 430.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009659/0.4098, allocations: 415.3 kB / 0.5099 GB, free: 10.26 MB / 430.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002885/0.4101, allocations: 12 kB / 0.5099 GB, free: 10.25 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006884/0.4108, allocations: 35.89 kB / 0.5099 GB, free: 10.21 MB / 430.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.411, allocations: 63.88 kB / 0.51 GB, free: 10.15 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.889e-05/0.411, allocations: 39.98 kB / 0.51 GB, free: 10.11 MB / 430.1 MB
Notification: Performance of sorting global known variables: time 0.002727/0.4138, allocations: 1.903 MB / 0.5119 GB, free: 8.207 MB / 430.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.4138, allocations: 0 / 0.5119 GB, free: 8.207 MB / 430.1 MB
Notification: Performance of remove unused functions: time 0.001397/0.4152, allocations: 0.5891 MB / 0.5125 GB, free: 7.617 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.001211/0.4164, allocations: 0.773 MB / 0.5132 GB, free: 6.836 MB / 430.1 MB
Notification: Performance of simCode: created initialization part: time 0.00176/0.4181, allocations: 0.7787 MB / 0.514 GB, free: 6.031 MB / 430.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.4181, allocations: 192 / 0.514 GB, free: 6.031 MB / 430.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008317/0.419, allocations: 435.2 kB / 0.5144 GB, free: 5.582 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/0.4216, allocations: 0.5999 MB / 0.515 GB, free: 4.977 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006735/0.4284, allocations: 4.386 MB / 0.5193 GB, free: 0.5469 MB / 430.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001315/0.4297, allocations: 1.665 MB / 0.5209 GB, free: 14.85 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.001133/0.4308, allocations: 357.1 kB / 0.5212 GB, free: 14.5 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.4311, allocations: 151.4 kB / 0.5214 GB, free: 14.35 MB / 446.1 MB
Notification: Performance of SimCode: time 8.82e-07/0.4311, allocations: 0 / 0.5214 GB, free: 14.35 MB / 446.1 MB
Notification: Performance of Templates: time 0.2407/0.6718, allocations: 31.9 MB / 0.5525 GB, free: 103.2 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.818436081521213]