Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001301/0.001301, allocations: 107 kB / 19.8 MB, free: 2.5 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.001382/0.001382, allocations: 216.3 kB / 23 MB, free: 5.57 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.486/1.486, allocations: 230.2 MB / 256.2 MB, free: 8.539 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.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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 59.89 kB / 376.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3132, allocations: 53.33 MB / 429.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006068/0.3192, allocations: 4.074 MB / 433.9 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003752/0.323, allocations: 2.093 MB / 435.9 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00039/0.3234, allocations: 15.94 kB / 436 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.3247, allocations: 0.5872 MB / 436.5 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008028/0.3255, allocations: 394 kB / 436.9 MB, free: 216 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007219/0.3263, allocations: 294.9 kB / 437.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001257/0.3275, allocations: 0.978 MB / 438.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003917/0.3279, allocations: 228.6 kB / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004746/0.3284, allocations: 390.7 kB / 438.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006872/0.3291, allocations: 0.5099 MB / 439.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.3292, allocations: 80 kB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002775/0.3295, allocations: 136 kB / 439.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004037/0.3299, allocations: 478.6 kB / 440 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006016/0.3305, allocations: 0.629 MB / 440.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002063/0.3325, allocations: 1.774 MB / 442.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3325, allocations: 4 kB / 442.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3325, allocations: 0 / 442.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.3326, allocations: 0 / 442.4 MB, free: 10.72 MB / 350.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.003063/0.3356, allocations: 1.868 MB / 444.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.3357, allocations: 16.03 kB / 444.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/0.336, allocations: 171.8 kB / 444.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.338, allocations: 1.186 MB / 445.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.3382, allocations: 96.95 kB / 445.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.764e-05/0.3382, allocations: 56.33 kB / 445.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.3395, allocations: 0.6631 MB / 446.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.3395, allocations: 0 / 446.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-05/0.3396, allocations: 20 kB / 446.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.3396, allocations: 15.98 kB / 446.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008331/0.3404, allocations: 435.7 kB / 446.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004684/0.3451, allocations: 2.876 MB / 449.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009658/0.3461, allocations: 406.4 kB / 450.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006053/0.3467, allocations: 288.7 kB / 450.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.3467, allocations: 8 kB / 450.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.3467, allocations: 38.56 kB / 450.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.873e-06/0.3467, allocations: 0 / 450.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001877/0.3486, allocations: 0.7761 MB / 451.3 MB, free: 1.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/0.3488, allocations: 269 kB / 451.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003114/0.3519, allocations: 2.243 MB / 453.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.967e-05/0.352, allocations: 33.7 kB / 453.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006409/0.3526, allocations: 0.6552 MB / 454.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.3527, allocations: 107.1 kB / 454.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.3529, allocations: 82.02 kB / 454.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.353, allocations: 318 kB / 455 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/0.3534, allocations: 156.7 kB / 455.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000458/0.3538, allocations: 300.8 kB / 455.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007112/0.3545, allocations: 393 kB / 455.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.3545, allocations: 3.938 kB / 455.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001385/0.3559, allocations: 0.6528 MB / 456.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3559, allocations: 4 kB / 456.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.3559, allocations: 4 kB / 456.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002997/0.3562, allocations: 64.75 kB / 456.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.3566, allocations: 99.94 kB / 456.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002052/0.3587, allocations: 1.767 MB / 458.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005708/0.3592, allocations: 55.69 kB / 458.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.3593, allocations: 24.08 kB / 458.5 MB, free: 9.992 MB / 366.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.0007168/0.36, allocations: 481.6 kB / 458.9 MB, free: 9.512 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002188/0.3602, allocations: 143 kB / 459.1 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00022/0.3604, allocations: 157.6 kB / 459.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.3604, allocations: 4 kB / 459.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3604, allocations: 7.875 kB / 459.3 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.3604, allocations: 3.984 kB / 459.3 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.3632, allocations: 1.661 MB / 460.9 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3632, allocations: 0 / 460.9 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003276/0.3636, allocations: 63.95 kB / 461 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001909/0.3638, allocations: 68.8 kB / 461 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.3638, allocations: 8 kB / 461.1 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001774/0.3656, allocations: 1.724 MB / 462.8 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3656, allocations: 0 / 462.8 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.3671, allocations: 0.806 MB / 463.6 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005337/0.3676, allocations: 340.1 kB / 463.9 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.3677, allocations: 15.92 kB / 463.9 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004756/0.3682, allocations: 47.95 kB / 464 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/0.3683, allocations: 23.97 kB / 464 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.3683, allocations: 12 kB / 464 MB, free: 4.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002255/0.3706, allocations: 1.608 MB / 465.6 MB, free: 2.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3706, allocations: 0 / 465.6 MB, free: 2.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007633/0.3713, allocations: 207.7 kB / 465.8 MB, free: 2.367 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.001695/0.373, allocations: 458.7 kB / 466.3 MB, free: 2.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.3741, allocations: 486.3 kB / 466.7 MB, free: 1.578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3741, allocations: 4.562 kB / 466.8 MB, free: 1.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005499/0.3746, allocations: 306.4 kB / 467.1 MB, free: 1.262 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.3756, allocations: 219.4 kB / 467.3 MB, free: 1.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004483/0.3801, allocations: 2.68 MB / 469.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/0.3812, allocations: 1.253 MB / 471.2 MB, free: 13.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005721/0.3817, allocations: 223.8 kB / 471.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.3819, allocations: 71.38 kB / 471.5 MB, free: 12.77 MB / 382.1 MB Notification: Performance of SimCode: time 1.593e-06/0.3819, allocations: 4 kB / 471.5 MB, free: 12.76 MB / 382.1 MB Notification: Performance of Templates: time 0.02897/0.4109, allocations: 14.35 MB / 485.8 MB, free: 14.51 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.242187603376806]