Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.542/1.542, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 47.92 kB / 373.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1283, allocations: 53.34 MB / 426.8 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006715/0.135, allocations: 4.046 MB / 430.8 MB, free: 260 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2133/0.3483, allocations: 2.067 MB / 432.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003263/0.3486, allocations: 18.56 kB / 432.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.3498, allocations: 0.5846 MB / 433.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007597/0.3506, allocations: 395.8 kB / 433.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.3513, allocations: 288.3 kB / 434.2 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.3526, allocations: 0.9808 MB / 435.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004925/0.3531, allocations: 260.3 kB / 435.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006403/0.3537, allocations: 400.5 kB / 435.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007296/0.3544, allocations: 0.5089 MB / 436.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.3546, allocations: 78.47 kB / 436.4 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003477/0.3549, allocations: 140 kB / 436.5 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004777/0.3554, allocations: 480.6 kB / 437 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005164/0.3559, allocations: 0.6284 MB / 437.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00202/0.3579, allocations: 1.772 MB / 439.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3579, allocations: 0 / 439.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3579, allocations: 1.312 kB / 439.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.349e-05/0.358, allocations: 0 / 439.4 MB, free: 6.34 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.003566/0.3615, allocations: 1.878 MB / 441.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.3616, allocations: 9.406 kB / 441.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003011/0.3619, allocations: 168.7 kB / 441.4 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002019/0.3639, allocations: 1.197 MB / 442.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.364, allocations: 92.23 kB / 442.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.518e-05/0.3641, allocations: 56.81 kB / 442.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.3653, allocations: 0.6615 MB / 443.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.3653, allocations: 1.094 kB / 443.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.367e-05/0.3653, allocations: 22.38 kB / 443.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.3654, allocations: 12.56 kB / 443.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000839/0.3662, allocations: 436.9 kB / 443.9 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004946/0.3711, allocations: 2.864 MB / 446.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.3722, allocations: 397.4 kB / 447.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006568/0.3728, allocations: 295.5 kB / 447.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.3729, allocations: 3 kB / 447.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.3729, allocations: 39.58 kB / 447.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.144e-06/0.3729, allocations: 0 / 447.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002/0.3749, allocations: 0.7802 MB / 448.3 MB, free: 1.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.475e-05/0.375, allocations: 262 kB / 448.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003868/0.3788, allocations: 2.246 MB / 450.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.573e-05/0.3789, allocations: 38.38 kB / 450.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005799/0.3795, allocations: 0.643 MB / 451.5 MB, free: 36 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.3796, allocations: 111.8 kB / 451.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.3798, allocations: 81.22 kB / 451.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.38, allocations: 325.9 kB / 452 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/0.3803, allocations: 159.8 kB / 452.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004904/0.3808, allocations: 302.4 kB / 452.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007412/0.3816, allocations: 391.9 kB / 452.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3816, allocations: 4 kB / 452.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001616/0.3832, allocations: 0.6432 MB / 453.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.3832, allocations: 10.66 kB / 453.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.3832, allocations: 2.281 kB / 453.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003408/0.3836, allocations: 65.98 kB / 453.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004039/0.384, allocations: 91.69 kB / 453.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.386, allocations: 1.767 MB / 455.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006055/0.3866, allocations: 59.14 kB / 455.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.446e-05/0.3867, allocations: 16.78 kB / 455.5 MB, free: 13.12 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.0008174/0.3875, allocations: 492.5 kB / 455.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002371/0.3877, allocations: 143.8 kB / 456.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002414/0.3879, allocations: 168.3 kB / 456.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.388, allocations: 3.266 kB / 456.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.388, allocations: 3.984 kB / 456.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.388, allocations: 5.562 kB / 456.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.391, allocations: 1.643 MB / 457.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.3911, allocations: 2.062 kB / 457.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003627/0.3914, allocations: 75.56 kB / 458 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002021/0.3916, allocations: 57.36 kB / 458 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.3916, allocations: 7.375 kB / 458 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00184/0.3935, allocations: 1.725 MB / 459.8 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.3935, allocations: 9.062 kB / 459.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.3953, allocations: 0.7982 MB / 460.6 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006764/0.396, allocations: 337.6 kB / 460.9 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002417/0.3962, allocations: 12.47 kB / 460.9 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/0.3968, allocations: 48.14 kB / 461 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.3969, allocations: 30.09 kB / 461 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/0.397, allocations: 10.55 kB / 461 MB, free: 9.074 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002956/0.3999, allocations: 1.611 MB / 462.6 MB, free: 8.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3999, allocations: 1.188 kB / 462.6 MB, free: 8.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00107/0.401, allocations: 211 kB / 462.8 MB, free: 8.285 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.001887/0.4029, allocations: 478.4 kB / 463.3 MB, free: 8.098 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.4044, allocations: 498.1 kB / 463.8 MB, free: 7.809 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.4044, allocations: 3.938 kB / 463.8 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007179/0.4051, allocations: 298.6 kB / 464.1 MB, free: 7.605 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.407, allocations: 202.7 kB / 464.3 MB, free: 7.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005955/0.413, allocations: 2.665 MB / 466.9 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001537/0.4145, allocations: 1.259 MB / 468.2 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001131/0.4157, allocations: 220.8 kB / 468.4 MB, free: 5.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004984/0.4162, allocations: 71.33 kB / 468.5 MB, free: 4.992 MB / 366.1 MB Notification: Performance of SimCode: time 1.744e-06/0.4162, allocations: 0 / 468.5 MB, free: 4.992 MB / 366.1 MB Notification: Performance of Templates: time 0.02982/0.446, allocations: 14.28 MB / 482.8 MB, free: 7.672 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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.466093823313713]