Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001787/0.001787, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001634/0.001634, allocations: 185 kB / 23.7 MB, free: 4.191 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.536/1.536, allocations: 225.7 MB / 252.5 MB, free: 12.85 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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 51.92 kB / 370.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3126, allocations: 52.18 MB / 423 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005872/0.3184, allocations: 3.668 MB / 426.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003475/0.3219, allocations: 1.78 MB / 428.5 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004793/0.3224, allocations: 15.88 kB / 428.5 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.3239, allocations: 0.5681 MB / 429.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008934/0.3248, allocations: 358.2 kB / 429.4 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007954/0.3256, allocations: 281.8 kB / 429.7 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001371/0.327, allocations: 0.9839 MB / 430.7 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004028/0.3274, allocations: 213 kB / 430.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004627/0.3278, allocations: 402.7 kB / 431.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006335/0.3285, allocations: 486.3 kB / 431.8 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.3286, allocations: 80 kB / 431.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002906/0.3289, allocations: 147.9 kB / 432 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000405/0.3293, allocations: 474.6 kB / 432.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004799/0.3298, allocations: 497 kB / 432.9 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001964/0.3317, allocations: 1.769 MB / 434.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3317, allocations: 0 / 434.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.408e-06/0.3317, allocations: 4 kB / 434.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.478e-05/0.3318, allocations: 0 / 434.7 MB, free: 2.777 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003463/0.3352, allocations: 1.795 MB / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.3353, allocations: 8.031 kB / 436.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.3355, allocations: 167.9 kB / 436.7 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002037/0.3376, allocations: 1.132 MB / 437.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001897/0.3378, allocations: 172 kB / 438 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.499e-05/0.3379, allocations: 48 kB / 438 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.3393, allocations: 1.015 MB / 439 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.3394, allocations: 0 / 439 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.5e-05/0.3394, allocations: 24 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.3394, allocations: 12 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008931/0.3403, allocations: 443.6 kB / 439.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005192/0.3455, allocations: 2.521 MB / 442 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000978/0.3465, allocations: 394.5 kB / 442.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006613/0.3472, allocations: 288.7 kB / 442.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.3472, allocations: 4 kB / 442.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/0.3472, allocations: 39.06 kB / 442.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 4.708e-06/0.3473, allocations: 3.984 kB / 442.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002049/0.3493, allocations: 0.6964 MB / 443.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/0.3495, allocations: 265 kB / 443.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00314/0.3526, allocations: 2.205 MB / 445.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.116e-05/0.3527, allocations: 37.7 kB / 445.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006432/0.3533, allocations: 0.6509 MB / 446.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.3534, allocations: 107.1 kB / 446.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.3536, allocations: 82 kB / 446.8 MB, free: 6.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3537, allocations: 322 kB / 447.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.3541, allocations: 164.6 kB / 447.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006097/0.3547, allocations: 0.5021 MB / 447.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007397/0.3555, allocations: 397.4 kB / 448.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3555, allocations: 0 / 448.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001542/0.357, allocations: 0.6377 MB / 448.8 MB, free: 4.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.357, allocations: 11.98 kB / 448.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.495e-06/0.357, allocations: 4.125 kB / 448.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003149/0.3573, allocations: 60.83 kB / 448.8 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/0.3577, allocations: 95.81 kB / 448.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001931/0.3597, allocations: 1.621 MB / 450.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005759/0.3602, allocations: 63.64 kB / 450.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.3603, allocations: 12 kB / 450.6 MB, free: 2.141 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000768/0.361, allocations: 0.4898 MB / 451.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002146/0.3613, allocations: 135.1 kB / 451.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002308/0.3615, allocations: 157.2 kB / 451.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3615, allocations: 4 kB / 451.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3615, allocations: 0 / 451.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3615, allocations: 0 / 451.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002878/0.3644, allocations: 1.413 MB / 452.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3644, allocations: 0 / 452.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003385/0.3647, allocations: 75.95 kB / 452.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002015/0.3649, allocations: 60.77 kB / 453 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.3649, allocations: 11.98 kB / 453 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001748/0.3667, allocations: 1.587 MB / 454.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.485e-06/0.3667, allocations: 11.92 kB / 454.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.3684, allocations: 0.8038 MB / 455.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007279/0.3691, allocations: 255 kB / 455.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.3692, allocations: 12 kB / 455.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004694/0.3697, allocations: 43.95 kB / 455.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.95e-05/0.3698, allocations: 31.95 kB / 455.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.3698, allocations: 7.984 kB / 455.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002405/0.3722, allocations: 1.575 MB / 457.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3722, allocations: 0 / 457.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009187/0.3731, allocations: 215.6 kB / 457.5 MB, free: 11.06 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001967/0.3751, allocations: 0.5005 MB / 458 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.3764, allocations: 486.1 kB / 458.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/0.3764, allocations: 4.562 kB / 458.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005675/0.3769, allocations: 310.6 kB / 458.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.378, allocations: 188.1 kB / 459 MB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004479/0.3825, allocations: 2.669 MB / 461.6 MB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007987/0.3833, allocations: 0.6562 MB / 462.3 MB, free: 6.402 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005472/0.3839, allocations: 211.5 kB / 462.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.3841, allocations: 67.42 kB / 462.6 MB, free: 6.125 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3841, allocations: 0 / 462.6 MB, free: 6.125 MB / 366.1 MB Notification: Performance of Templates: time 0.03065/0.4147, allocations: 15.24 MB / 477.8 MB, free: 7.047 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.229259263724089]