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.001128/0.001128, allocations: 111.5 kB / 17.69 MB, free: 5.422 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.001008/0.001008, allocations: 192 kB / 18.63 MB, free: 4.492 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.384/1.384, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001038, allocations: 42.59 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1117, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005605/0.1174, allocations: 3.969 MB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002896/0.1203, allocations: 1.913 MB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002712/0.1206, allocations: 15.94 kB / 357.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.1218, allocations: 0.5798 MB / 358 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005487/0.1224, allocations: 350.2 kB / 358.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006002/0.123, allocations: 287.1 kB / 358.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001242/0.1243, allocations: 0.9897 MB / 359.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006597/0.1249, allocations: 348.5 kB / 359.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005039/0.1255, allocations: 390.7 kB / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006424/0.1261, allocations: 498.2 kB / 360.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.1262, allocations: 80 kB / 360.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002579/0.1265, allocations: 136 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003689/0.1269, allocations: 466.7 kB / 361.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005668/0.1275, allocations: 0.629 MB / 362.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001638/0.1291, allocations: 1.756 MB / 363.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1291, allocations: 0 / 363.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1291, allocations: 0 / 363.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.703e-05/0.1291, allocations: 0 / 363.9 MB, free: 7.285 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.00315/0.1323, allocations: 1.818 MB / 365.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.88e-05/0.1324, allocations: 8.031 kB / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002971/0.1327, allocations: 155.1 kB / 365.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.1348, allocations: 1.181 MB / 367 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.1349, allocations: 92.97 kB / 367.1 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.1351, allocations: 55.92 kB / 367.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.1363, allocations: 0.6517 MB / 367.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.1363, allocations: 4 kB / 367.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.786e-05/0.1364, allocations: 23.98 kB / 367.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.1364, allocations: 12 kB / 367.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008071/0.1372, allocations: 435.7 kB / 368.3 MB, free: 2.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2025/0.3397, allocations: 2.857 MB / 371.1 MB, free: 24.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.341, allocations: 424 kB / 371.5 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000738/0.3418, allocations: 315.1 kB / 371.9 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.412e-05/0.3418, allocations: 3.25 kB / 371.9 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.3419, allocations: 37.73 kB / 371.9 MB, free: 24.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.196e-06/0.3419, allocations: 0.7812 kB / 371.9 MB, free: 24.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.00256/0.3445, allocations: 0.7784 MB / 372.7 MB, free: 24.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.3446, allocations: 262.5 kB / 372.9 MB, free: 23.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003777/0.3484, allocations: 2.231 MB / 375.2 MB, free: 23.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.948e-05/0.3485, allocations: 32.45 kB / 375.2 MB, free: 23.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005544/0.349, allocations: 0.6396 MB / 375.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.021e-05/0.3491, allocations: 109.3 kB / 375.9 MB, free: 22.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.3493, allocations: 75.48 kB / 376 MB, free: 22.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.529e-05/0.3494, allocations: 322.9 kB / 376.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.3498, allocations: 160.4 kB / 376.5 MB, free: 22.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004454/0.3502, allocations: 306.4 kB / 376.8 MB, free: 22.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006697/0.3509, allocations: 402.4 kB / 377.2 MB, free: 21.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3509, allocations: 1.344 kB / 377.2 MB, free: 21.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001355/0.3523, allocations: 0.6463 MB / 377.8 MB, free: 21.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.3523, allocations: 6.438 kB / 377.8 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.3523, allocations: 2.688 kB / 377.8 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003119/0.3526, allocations: 63.44 kB / 377.9 MB, free: 21.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/0.353, allocations: 87.58 kB / 378 MB, free: 21.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.3545, allocations: 1.779 MB / 379.8 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006263/0.3551, allocations: 51.03 kB / 379.8 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/0.3552, allocations: 16.58 kB / 379.8 MB, free: 19.94 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.0008652/0.356, allocations: 487.5 kB / 380.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002551/0.3563, allocations: 135.7 kB / 380.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002247/0.3565, allocations: 166.4 kB / 380.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3565, allocations: 5.125 kB / 380.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3566, allocations: 0.7031 kB / 380.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.3566, allocations: 6.281 kB / 380.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002994/0.3596, allocations: 1.649 MB / 382.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3596, allocations: 2 kB / 382.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000326/0.3599, allocations: 74.12 kB / 382.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001847/0.3601, allocations: 59.2 kB / 382.4 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.3602, allocations: 8.922 kB / 382.4 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.3613, allocations: 1.719 MB / 384.1 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3613, allocations: 0 / 384.1 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.3628, allocations: 0.8063 MB / 384.9 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006319/0.3634, allocations: 327.7 kB / 385.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.3636, allocations: 8.969 kB / 385.2 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004507/0.364, allocations: 55.28 kB / 385.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.528e-05/0.3641, allocations: 31.83 kB / 385.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.3641, allocations: 7.594 kB / 385.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00221/0.3664, allocations: 1.601 MB / 386.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.3664, allocations: 0 / 386.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008014/0.3672, allocations: 208.1 kB / 387.1 MB, free: 15.94 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.001093/0.3683, allocations: 472.8 kB / 387.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.3694, allocations: 0.5005 MB / 388.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.3695, allocations: 1.438 kB / 388.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004958/0.37, allocations: 317.6 kB / 388.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009504/0.3709, allocations: 210.6 kB / 388.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003659/0.3746, allocations: 2.632 MB / 391.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007321/0.3753, allocations: 1.261 MB / 392.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000455/0.3758, allocations: 210.1 kB / 392.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.376, allocations: 70.41 kB / 392.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.376, allocations: 0 / 392.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of Templates: time 0.02074/0.3968, allocations: 13.97 MB / 406.8 MB, free: 1.168 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 -s cvode -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/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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches