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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=24000,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=24000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007821/0.0007821, allocations: 89.38 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009103/0.0009104, allocations: 174 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002649/0.0002649, allocations: 11.94 kB / 301.4 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1084, allocations: 50.41 MB / 351.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004563/0.1131, allocations: 3.602 MB / 355.4 MB, free: 92 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003502/0.1166, allocations: 1.859 MB / 357.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005113/0.1172, allocations: 11.94 kB / 357.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.1185, allocations: 0.5646 MB / 357.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006794/0.1191, allocations: 306.7 kB / 358.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006685/0.1198, allocations: 262.9 kB / 358.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001042/0.1209, allocations: 0.9233 MB / 359.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004767/0.1214, allocations: 308 kB / 359.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003804/0.1218, allocations: 306.7 kB / 359.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004783/0.1222, allocations: 438.3 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.031e-05/0.1223, allocations: 40 kB / 360.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002049/0.1225, allocations: 87.97 kB / 360.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003034/0.1228, allocations: 426.7 kB / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005/0.1234, allocations: 0.5877 MB / 361.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.1248, allocations: 1.654 MB / 363.2 MB, free: 8.324 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1248, allocations: 4 kB / 363.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1248, allocations: 0 / 363.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.846e-05/0.1248, allocations: 0 / 363.2 MB, free: 8.32 MB / 302.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.002797/0.1276, allocations: 1.586 MB / 364.7 MB, free: 6.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.1277, allocations: 8.031 kB / 364.8 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003258/0.128, allocations: 163 kB / 364.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/0.1297, allocations: 1.165 MB / 366.1 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003454/0.1301, allocations: 144.8 kB / 366.2 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.677e-05/0.1302, allocations: 51.94 kB / 366.3 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.1314, allocations: 0.6829 MB / 367 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1314, allocations: 4 kB / 367 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.631e-05/0.1315, allocations: 20 kB / 367 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.1315, allocations: 12 kB / 367 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009034/0.1324, allocations: 459.7 kB / 367.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004711/0.1371, allocations: 2.918 MB / 370.4 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.1382, allocations: 474.4 kB / 370.8 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000719/0.139, allocations: 340.7 kB / 371.1 MB, free: 48 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/0.139, allocations: 4 kB / 371.2 MB, free: 44 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1956/0.3347, allocations: 38.56 kB / 371.2 MB, free: 24.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 8.586e-06/0.3347, allocations: 0 / 371.2 MB, free: 24.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002831/0.3376, allocations: 0.8307 MB / 372 MB, free: 23.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.792e-05/0.3377, allocations: 264 kB / 372.3 MB, free: 23.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003912/0.3416, allocations: 2.23 MB / 374.5 MB, free: 23.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.837e-05/0.3417, allocations: 34.77 kB / 374.5 MB, free: 23.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005608/0.3423, allocations: 0.6395 MB / 375.2 MB, free: 23.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.3424, allocations: 109.1 kB / 375.3 MB, free: 22.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.683e-05/0.3425, allocations: 38.62 kB / 375.3 MB, free: 22.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.838e-05/0.3426, allocations: 321.6 kB / 375.6 MB, free: 22.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004479/0.343, allocations: 183.3 kB / 375.8 MB, free: 22.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005198/0.3435, allocations: 322 kB / 376.1 MB, free: 22.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008521/0.3444, allocations: 429.4 kB / 376.6 MB, free: 22.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3444, allocations: 2.406 kB / 376.6 MB, free: 22.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001628/0.346, allocations: 0.6884 MB / 377.2 MB, free: 21.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.3461, allocations: 6.047 kB / 377.3 MB, free: 21.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.3461, allocations: 3.281 kB / 377.3 MB, free: 21.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003121/0.3464, allocations: 69.52 kB / 377.3 MB, free: 21.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004371/0.3469, allocations: 98.56 kB / 377.4 MB, free: 21.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.3488, allocations: 1.614 MB / 379 MB, free: 20.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006594/0.3495, allocations: 74.22 kB / 379.1 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/0.3495, allocations: 16.5 kB / 379.1 MB, free: 20.36 MB / 302.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.001018/0.3506, allocations: 492.7 kB / 379.6 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/0.3508, allocations: 133.9 kB / 379.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003068/0.3511, allocations: 164.3 kB / 379.9 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.3512, allocations: 8.438 kB / 379.9 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.3512, allocations: 0 / 379.9 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.3512, allocations: 2.766 kB / 379.9 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003272/0.3545, allocations: 1.708 MB / 381.6 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3545, allocations: 0 / 381.6 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000353/0.3548, allocations: 79.7 kB / 381.7 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002047/0.3551, allocations: 63.52 kB / 381.8 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.3551, allocations: 8.594 kB / 381.8 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.3565, allocations: 1.578 MB / 383.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3565, allocations: 1 kB / 383.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/0.3585, allocations: 0.8604 MB / 384.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000483/0.359, allocations: 329.4 kB / 384.5 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.3591, allocations: 13.61 kB / 384.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004988/0.3596, allocations: 62.64 kB / 384.6 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.3597, allocations: 38.31 kB / 384.6 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.3597, allocations: 8.5 kB / 384.6 MB, free: 17.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002502/0.3623, allocations: 1.6 MB / 386.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3623, allocations: 1.469 kB / 386.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009241/0.3632, allocations: 199.7 kB / 386.4 MB, free: 16.5 MB / 302.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.001208/0.3644, allocations: 474.8 kB / 386.9 MB, free: 16.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.3657, allocations: 0.5421 MB / 387.4 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3657, allocations: 1.219 kB / 387.4 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005931/0.3663, allocations: 331.2 kB / 387.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.3674, allocations: 190.8 kB / 388 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004508/0.3719, allocations: 3.105 MB / 391.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008386/0.3728, allocations: 1.259 MB / 392.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006149/0.3734, allocations: 220.2 kB / 392.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001947/0.3736, allocations: 73.86 kB / 392.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3736, allocations: 0 / 392.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of Templates: time 0.02151/0.3951, allocations: 13.11 MB / 405.7 MB, free: 1.812 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (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) 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) Reference file matches