Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.001608/0.001608, 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.002003/0.002003, 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.465/1.465, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance")
translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 47.92 kB / 370.9 MB, free: 9.355 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3086, allocations: 52.18 MB / 423.1 MB, free: 14.69 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00358/0.3122, allocations: 1.931 MB / 425 MB, free: 12.75 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001892/0.3141, allocations: 1.25 MB / 426.3 MB, free: 11.49 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 8.913e-05/0.3142, allocations: 0 / 426.3 MB, free: 11.49 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001094/0.3153, allocations: 0.5 MB / 426.8 MB, free: 10.99 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002535/0.3155, allocations: 195.4 kB / 427 MB, free: 10.8 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004834/0.316, allocations: 183.3 kB / 427.2 MB, free: 10.62 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000352/0.3164, allocations: 219.1 kB / 427.4 MB, free: 10.4 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 9.44e-05/0.3165, allocations: 13.81 kB / 427.4 MB, free: 10.39 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/0.3167, allocations: 127.5 kB / 427.5 MB, free: 10.26 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003055/0.317, allocations: 235.4 kB / 427.7 MB, free: 10.03 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.903e-05/0.317, allocations: 8 kB / 427.7 MB, free: 10.02 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/0.3172, allocations: 55.97 kB / 427.8 MB, free: 9.969 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002152/0.3174, allocations: 259.3 kB / 428.1 MB, free: 9.715 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000247/0.3176, allocations: 281.9 kB / 428.3 MB, free: 9.438 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0008345/0.3185, allocations: 0.7852 MB / 429.1 MB, free: 8.652 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3185, allocations: 4 kB / 429.1 MB, free: 8.648 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.733e-06/0.3185, allocations: 0 / 429.1 MB, free: 8.648 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.243e-05/0.3185, allocations: 0 / 429.1 MB, free: 8.648 MB / 334.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 4
 * Number of variables: 4
Notification: Performance of Generate backend data structure: time 0.002819/0.3213, allocations: 1.133 MB / 430.2 MB, free: 7.48 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.3213, allocations: 12.03 kB / 430.3 MB, free: 7.469 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001997/0.3215, allocations: 92.36 kB / 430.4 MB, free: 7.379 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.3226, allocations: 0.6993 MB / 431.1 MB, free: 6.641 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.3226, allocations: 4.375 kB / 431.1 MB, free: 6.637 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.3226, allocations: 384 / 431.1 MB, free: 6.637 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.323, allocations: 121.9 kB / 431.2 MB, free: 6.512 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.323, allocations: 0 / 431.2 MB, free: 6.512 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.323, allocations: 3.938 kB / 431.2 MB, free: 6.508 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.323, allocations: 0 / 431.2 MB, free: 6.508 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003889/0.3234, allocations: 143.9 kB / 431.3 MB, free: 6.367 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.3246, allocations: 0.7937 MB / 432.1 MB, free: 5.531 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002358/0.3248, allocations: 86.45 kB / 432.2 MB, free: 5.438 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001995/0.325, allocations: 76.89 kB / 432.3 MB, free: 5.359 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.325, allocations: 0 / 432.3 MB, free: 5.359 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.3251, allocations: 34.5 kB / 432.3 MB, free: 5.316 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3251, allocations: 4 kB / 432.3 MB, free: 5.312 MB / 334.1 MB
Notification: Performance of matching and sorting (n=3): time 0.0008954/0.326, allocations: 328.9 kB / 432.6 MB, free: 4.984 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.326, allocations: 51.41 kB / 432.7 MB, free: 4.922 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001765/0.3278, allocations: 1.409 MB / 434.1 MB, free: 3.492 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.3278, allocations: 25.7 kB / 434.1 MB, free: 3.461 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0003379/0.3281, allocations: 380.4 kB / 434.5 MB, free: 3.086 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.167e-05/0.3282, allocations: 15.84 kB / 434.5 MB, free: 3.07 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.498e-05/0.3282, allocations: 25.7 kB / 434.5 MB, free: 3.039 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001242/0.3283, allocations: 306 kB / 434.8 MB, free: 2.734 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.3285, allocations: 71.94 kB / 434.9 MB, free: 2.664 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.3288, allocations: 86.45 kB / 435 MB, free: 2.57 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/0.3291, allocations: 158.4 kB / 435.1 MB, free: 2.406 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3291, allocations: 4 kB / 435.1 MB, free: 2.402 MB / 334.1 MB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006443/0.3298, allocations: 268.9 kB / 435.4 MB, free: 2.133 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.3298, allocations: 10.59 kB / 435.4 MB, free: 2.125 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3298, allocations: 4 kB / 435.4 MB, free: 2.121 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.3298, allocations: 0 / 435.4 MB, free: 2.121 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/0.33, allocations: 19.92 kB / 435.4 MB, free: 2.102 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.33, allocations: 3.984 kB / 435.4 MB, free: 2.098 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.3303, allocations: 8 kB / 435.4 MB, free: 2.09 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.3303, allocations: 4 kB / 435.5 MB, free: 2.086 MB / 334.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * 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 (3):
 * Single equations (assignments): 3
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * 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.00039/0.3307, allocations: 341.6 kB / 435.8 MB, free: 1.742 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/0.3309, allocations: 91.39 kB / 435.9 MB, free: 1.652 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006776/0.3315, allocations: 285.7 kB / 436.2 MB, free: 1.363 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3315, allocations: 0 / 436.2 MB, free: 1.363 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3316, allocations: 4 kB / 436.2 MB, free: 1.359 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3316, allocations: 0 / 436.2 MB, free: 1.359 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005837/0.3321, allocations: 497.7 kB / 436.6 MB, free: 0.832 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3321, allocations: 0 / 436.6 MB, free: 0.832 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.559e-05/0.3322, allocations: 23.86 kB / 436.7 MB, free: 0.8086 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.3322, allocations: 0 / 436.7 MB, free: 0.8086 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.3323, allocations: 3.984 kB / 436.7 MB, free: 0.8047 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3323, allocations: 0 / 436.7 MB, free: 0.8047 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3323, allocations: 0 / 436.7 MB, free: 0.8047 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005728/0.3328, allocations: 323.3 kB / 437 MB, free: 484 kB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003497/0.3332, allocations: 151.4 kB / 437.1 MB, free: 332 kB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.416e-05/0.3333, allocations: 4 kB / 437.1 MB, free: 328 kB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.3335, allocations: 4 kB / 437.1 MB, free: 324 kB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.3335, allocations: 7.922 kB / 437.1 MB, free: 316 kB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.3335, allocations: 8 kB / 437.2 MB, free: 308 kB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.001375/0.3349, allocations: 1.009 MB / 438.2 MB, free: 15.28 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.3349, allocations: 4 kB / 438.2 MB, free: 15.28 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003686/0.3353, allocations: 71.92 kB / 438.2 MB, free: 15.21 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * 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 simulation (4):
 * Single equations (assignments): 3
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 1
 * When equations: 0
 * 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.0002066/0.3355, allocations: 103.2 kB / 438.3 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004411/0.3359, allocations: 131.9 kB / 438.5 MB, free: 14.96 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3359, allocations: 0 / 438.5 MB, free: 14.96 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000177/0.3361, allocations: 47.95 kB / 438.5 MB, free: 14.92 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006085/0.3367, allocations: 115.9 kB / 438.6 MB, free: 14.8 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.3389, allocations: 1.383 MB / 440 MB, free: 13.4 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008788/0.3398, allocations: 1 MB / 441 MB, free: 12.38 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0008175/0.3406, allocations: 474 kB / 441.5 MB, free: 11.91 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.3407, allocations: 39.42 kB / 441.5 MB, free: 11.87 MB / 350.1 MB
Notification: Performance of SimCode: time 6.91e-07/0.3407, allocations: 0 / 441.5 MB, free: 11.87 MB / 350.1 MB
Notification: Performance of Templates: time 0.01751/0.3583, allocations: 7.539 MB / 449.1 MB, free: 4.367 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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: 4.862939244136214]