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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.637/1.637, allocations: 222.9 MB / 241 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 97.92 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001002, allocations: 39.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2865, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004845/0.2914, allocations: 3.995 MB / 403.5 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002317/0.2937, allocations: 1.865 MB / 405.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002841/0.2941, allocations: 11.94 kB / 405.3 MB, free: 27.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.2953, allocations: 0.5684 MB / 405.9 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004547/0.2958, allocations: 314.7 kB / 406.2 MB, free: 26.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005198/0.2963, allocations: 255.2 kB / 406.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007871/0.2971, allocations: 0.9389 MB / 407.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003429/0.2974, allocations: 316 kB / 407.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002381/0.2977, allocations: 334.7 kB / 408 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003566/0.2981, allocations: 474.2 kB / 408.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.685e-05/0.2981, allocations: 44 kB / 408.6 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001887/0.2983, allocations: 104 kB / 408.7 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002231/0.2986, allocations: 438.7 kB / 409.1 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003556/0.2989, allocations: 0.586 MB / 409.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009378/0.2999, allocations: 1.693 MB / 411.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2999, allocations: 4 kB / 411.4 MB, free: 21.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2999, allocations: 0 / 411.4 MB, free: 21.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.2999, allocations: 0 / 411.4 MB, free: 21.42 MB / 298.7 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.002516/0.3024, allocations: 1.814 MB / 413.2 MB, free: 19.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3025, allocations: 8.031 kB / 413.2 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.3027, allocations: 159 kB / 413.3 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.304, allocations: 1.169 MB / 414.5 MB, free: 18.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002695/0.3043, allocations: 132.9 kB / 414.6 MB, free: 18.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.056e-05/0.3044, allocations: 51.94 kB / 414.7 MB, free: 17.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009046/0.3053, allocations: 0.6712 MB / 415.4 MB, free: 17.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.3053, allocations: 7.938 kB / 415.4 MB, free: 17.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.659e-05/0.3054, allocations: 24 kB / 415.4 MB, free: 17.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.3054, allocations: 15.98 kB / 415.4 MB, free: 17.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000685/0.3061, allocations: 443.7 kB / 415.8 MB, free: 16.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003386/0.3095, allocations: 2.891 MB / 418.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00092/0.3104, allocations: 450.3 kB / 419.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005771/0.311, allocations: 318.4 kB / 419.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.3111, allocations: 16 kB / 419.5 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.3111, allocations: 38.56 kB / 419.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.264e-06/0.3111, allocations: 0 / 419.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.001764/0.3129, allocations: 0.7871 MB / 420.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.531e-05/0.313, allocations: 265 kB / 420.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/0.315, allocations: 2.23 MB / 422.8 MB, free: 9.578 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.3151, allocations: 37.7 kB / 422.8 MB, free: 9.535 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000473/0.3156, allocations: 0.6389 MB / 423.5 MB, free: 8.887 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.949e-05/0.3156, allocations: 102.5 kB / 423.6 MB, free: 8.785 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.3158, allocations: 77.98 kB / 423.7 MB, free: 8.699 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.154e-05/0.3159, allocations: 329.9 kB / 424 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003415/0.3162, allocations: 168.6 kB / 424.2 MB, free: 8.207 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004086/0.3167, allocations: 320.5 kB / 424.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007334/0.3174, allocations: 421.6 kB / 424.9 MB, free: 7.398 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3174, allocations: 4 kB / 424.9 MB, free: 7.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001271/0.3187, allocations: 0.6562 MB / 425.5 MB, free: 6.727 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.3187, allocations: 8 kB / 425.5 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3187, allocations: 8.141 kB / 425.6 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003088/0.3191, allocations: 68.8 kB / 425.6 MB, free: 6.641 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003811/0.3194, allocations: 99.86 kB / 425.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/0.3208, allocations: 1.599 MB / 427.3 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000463/0.3213, allocations: 63.52 kB / 427.4 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.3213, allocations: 12 kB / 427.4 MB, free: 4.738 MB / 298.7 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.0005074/0.3219, allocations: 489.5 kB / 427.9 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.322, allocations: 130.3 kB / 428 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001719/0.3222, allocations: 165.5 kB / 428.2 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.3222, allocations: 12.03 kB / 428.2 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3222, allocations: 0 / 428.2 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3222, allocations: 3.938 kB / 428.2 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002382/0.3246, allocations: 1.674 MB / 429.8 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3246, allocations: 4 kB / 429.9 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003789/0.325, allocations: 79.81 kB / 429.9 MB, free: 2.113 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001646/0.3252, allocations: 56.81 kB / 430 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.3252, allocations: 8 kB / 430 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.3264, allocations: 1.564 MB / 431.6 MB, free: 360 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.3264, allocations: 3.984 kB / 431.6 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009232/0.3356, allocations: 6.34 MB / 437.9 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005753/0.3362, allocations: 335.2 kB / 438.2 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.3363, allocations: 15.98 kB / 438.2 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005079/0.3369, allocations: 52.03 kB / 438.3 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.725e-05/0.337, allocations: 27.95 kB / 438.3 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.337, allocations: 15.98 kB / 438.3 MB, free: 9.223 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001971/0.339, allocations: 1.596 MB / 439.9 MB, free: 7.629 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.339, allocations: 7.938 kB / 439.9 MB, free: 7.621 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001014/0.34, allocations: 319.5 kB / 440.3 MB, free: 7.309 MB / 314.7 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.001301/0.3413, allocations: 0.5584 MB / 440.8 MB, free: 6.988 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.3426, allocations: 0.5222 MB / 441.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.3426, allocations: 0 / 441.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005838/0.3432, allocations: 326.4 kB / 441.7 MB, free: 6.121 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009427/0.3442, allocations: 193.5 kB / 441.8 MB, free: 5.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004811/0.349, allocations: 3.404 MB / 445.2 MB, free: 2.461 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009919/0.35, allocations: 1.267 MB / 446.5 MB, free: 1.168 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006118/0.3506, allocations: 219.8 kB / 446.7 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000215/0.3508, allocations: 79.36 kB / 446.8 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of SimCode: time 1.392e-06/0.3509, allocations: 4 kB / 446.8 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of Templates: time 0.02875/0.3796, allocations: 14.84 MB / 461.7 MB, free: 2.121 MB / 330.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches