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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=24000,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=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001601/0.001601, allocations: 120.3 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001853/0.001853, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.133/2.133, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3154, allocations: 50.54 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.008593/0.3241, allocations: 4.023 MB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005256/0.3294, allocations: 2.072 MB / 416 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006213/0.3301, allocations: 11.94 kB / 416 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002179/0.3323, allocations: 0.5837 MB / 416.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001317/0.3337, allocations: 390 kB / 417 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.3348, allocations: 287.1 kB / 417.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00188/0.3367, allocations: 0.982 MB / 418.3 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007048/0.3374, allocations: 356.5 kB / 418.6 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007012/0.3382, allocations: 390.7 kB / 419 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008977/0.3391, allocations: 494.3 kB / 419.5 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002295/0.3393, allocations: 80 kB / 419.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004545/0.3398, allocations: 132 kB / 419.7 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005611/0.3404, allocations: 482.7 kB / 420.1 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000992/0.3414, allocations: 0.6368 MB / 420.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002365/0.3438, allocations: 1.757 MB / 422.5 MB, free: 4.898 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3438, allocations: 0 / 422.5 MB, free: 4.898 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3438, allocations: 0 / 422.5 MB, free: 4.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.932e-05/0.3439, allocations: 4 kB / 422.5 MB, free: 4.895 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.004857/0.3488, allocations: 1.818 MB / 424.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.3488, allocations: 12.03 kB / 424.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004722/0.3493, allocations: 159 kB / 424.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002898/0.3522, allocations: 1.185 MB / 425.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.3524, allocations: 92.97 kB / 425.8 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.3526, allocations: 59.88 kB / 425.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.3542, allocations: 0.6596 MB / 426.5 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.3543, allocations: 0 / 426.5 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.545e-05/0.3544, allocations: 24 kB / 426.5 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.074e-05/0.3544, allocations: 15.98 kB / 426.6 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.3555, allocations: 435.7 kB / 427 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006408/0.3619, allocations: 2.864 MB / 429.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.3634, allocations: 430.4 kB / 430.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009682/0.3643, allocations: 316.6 kB / 430.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.3644, allocations: 8 kB / 430.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.3645, allocations: 42.56 kB / 430.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.345e-06/0.3645, allocations: 0 / 430.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002857/0.3673, allocations: 0.7637 MB / 431.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.3675, allocations: 269 kB / 431.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004025/0.3715, allocations: 2.243 MB / 433.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.643e-05/0.3716, allocations: 29.7 kB / 433.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008005/0.3724, allocations: 0.6545 MB / 434.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.3726, allocations: 98.56 kB / 434.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002087/0.3729, allocations: 81.97 kB / 434.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.373, allocations: 321.9 kB / 435.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005099/0.3735, allocations: 164.6 kB / 435.2 MB, free: 7.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006078/0.3741, allocations: 292.8 kB / 435.5 MB, free: 7.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.3752, allocations: 393 kB / 435.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.3752, allocations: 0 / 435.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.002149/0.3773, allocations: 0.6443 MB / 436.5 MB, free: 6.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.3774, allocations: 8 kB / 436.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.3774, allocations: 3.938 kB / 436.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003765/0.3778, allocations: 72.75 kB / 436.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000437/0.3783, allocations: 96 kB / 436.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002359/0.3806, allocations: 1.763 MB / 438.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007401/0.3814, allocations: 59.5 kB / 438.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-05/0.3815, allocations: 20.09 kB / 438.6 MB, free: 4.215 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.0007307/0.3822, allocations: 477.6 kB / 439 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004418/0.3827, allocations: 138.3 kB / 439.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003314/0.383, allocations: 165.5 kB / 439.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.383, allocations: 4 kB / 439.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.383, allocations: 0 / 439.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3831, allocations: 0 / 439.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/0.3873, allocations: 1.669 MB / 441 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.3873, allocations: 4 kB / 441 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004937/0.3878, allocations: 63.95 kB / 441.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003015/0.3881, allocations: 68.94 kB / 441.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.3882, allocations: 11.98 kB / 441.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002031/0.3902, allocations: 1.72 MB / 442.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.3903, allocations: 3.938 kB / 442.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.3923, allocations: 0.7936 MB / 443.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008334/0.3931, allocations: 335.2 kB / 444 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002859/0.3934, allocations: 8 kB / 444 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007031/0.3941, allocations: 51.95 kB / 444 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3942, allocations: 27.95 kB / 444.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.3943, allocations: 12 kB / 444.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002626/0.3969, allocations: 1.608 MB / 445.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3969, allocations: 0 / 445.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009433/0.3979, allocations: 203.6 kB / 445.9 MB, free: 12.61 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.001138/0.399, allocations: 468.5 kB / 446.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.4003, allocations: 0.4906 MB / 446.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4003, allocations: 0.5625 kB / 446.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006745/0.401, allocations: 322.4 kB / 447.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.4023, allocations: 218.3 kB / 447.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004761/0.4071, allocations: 2.686 MB / 450.1 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.4082, allocations: 1.249 MB / 451.3 MB, free: 7.254 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003073/0.4085, allocations: 75.42 kB / 451.4 MB, free: 7.18 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4085, allocations: 0 / 451.4 MB, free: 7.18 MB / 366.1 MB Notification: Performance of Templates: time 0.03329/0.4418, allocations: 21.27 MB / 472.7 MB, free: 1.941 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches