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.001439/0.001439, allocations: 116 kB / 17.07 MB, free: 5.973 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.001653/0.001653, allocations: 200 kB / 18.01 MB, free: 5.055 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.442/1.442, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009775/0.0009775, allocations: 47.92 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3361, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005309/0.3415, allocations: 3.982 MB / 404.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003691/0.3452, allocations: 1.91 MB / 406.6 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003839/0.3456, allocations: 11.94 kB / 406.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.347, allocations: 0.5874 MB / 407.2 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006551/0.3477, allocations: 362.2 kB / 407.5 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006291/0.3484, allocations: 282.5 kB / 407.8 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.3494, allocations: 0.9858 MB / 408.8 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005781/0.35, allocations: 344.5 kB / 409.1 MB, free: 404 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004145/0.3504, allocations: 394.7 kB / 409.5 MB, free: 8 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000555/0.351, allocations: 494.2 kB / 410 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.57e-05/0.3511, allocations: 76 kB / 410.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000256/0.3514, allocations: 148 kB / 410.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003407/0.3517, allocations: 470.7 kB / 410.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005163/0.3522, allocations: 0.6251 MB / 411.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.3538, allocations: 1.756 MB / 413.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3538, allocations: 4 kB / 413.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3538, allocations: 0 / 413.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.3538, allocations: 0 / 413.1 MB, free: 12.45 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.002941/0.3567, allocations: 1.806 MB / 414.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.3568, allocations: 12.03 kB / 414.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.3571, allocations: 159 kB / 415.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00171/0.3588, allocations: 1.177 MB / 416.2 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.3589, allocations: 88.97 kB / 416.3 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.22e-05/0.359, allocations: 55.84 kB / 416.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.3601, allocations: 0.6673 MB / 417 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.3601, allocations: 0 / 417 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/0.3602, allocations: 24 kB / 417.1 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.3602, allocations: 12 kB / 417.1 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000744/0.3609, allocations: 435.7 kB / 417.5 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004081/0.365, allocations: 2.871 MB / 420.4 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009197/0.366, allocations: 430.5 kB / 420.8 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006225/0.3666, allocations: 316.3 kB / 421.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.3667, allocations: 7.984 kB / 421.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.433e-05/0.3667, allocations: 43.06 kB / 421.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.034e-06/0.3667, allocations: 0 / 421.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001873/0.3686, allocations: 0.7671 MB / 421.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.3687, allocations: 261 kB / 422.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002643/0.3714, allocations: 2.23 MB / 424.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.3714, allocations: 29.7 kB / 424.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005131/0.3719, allocations: 0.639 MB / 425.1 MB, free: 52 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.3721, allocations: 106.6 kB / 425.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.3722, allocations: 85.97 kB / 425.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.3723, allocations: 325.9 kB / 425.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003189/0.3726, allocations: 156.7 kB / 425.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004365/0.3731, allocations: 304.5 kB / 426 MB, free: 15.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006719/0.3738, allocations: 401.4 kB / 426.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3738, allocations: 0 / 426.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001263/0.3751, allocations: 0.637 MB / 427.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.3751, allocations: 10.66 kB / 427.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3751, allocations: 3.938 kB / 427.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003139/0.3754, allocations: 68.81 kB / 427.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.3758, allocations: 99.88 kB / 427.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.3775, allocations: 1.763 MB / 429 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004167/0.3779, allocations: 51.52 kB / 429 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.3779, allocations: 16 kB / 429.1 MB, free: 11.8 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.0006468/0.3786, allocations: 497.6 kB / 429.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.3788, allocations: 134.3 kB / 429.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000222/0.379, allocations: 169.4 kB / 429.8 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.379, allocations: 0 / 429.8 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.379, allocations: 4 kB / 429.8 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.379, allocations: 3.984 kB / 429.9 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.3815, allocations: 1.654 MB / 431.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3816, allocations: 0 / 431.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003315/0.3819, allocations: 71.89 kB / 431.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001796/0.3821, allocations: 52.81 kB / 431.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.3821, allocations: 16.06 kB / 431.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.3837, allocations: 1.72 MB / 433.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.3837, allocations: 3.938 kB / 433.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.3851, allocations: 0.8022 MB / 434.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00048/0.3856, allocations: 339.2 kB / 434.5 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.3858, allocations: 8 kB / 434.5 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/0.3862, allocations: 47.95 kB / 434.6 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.713e-05/0.3863, allocations: 31.95 kB / 434.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.3863, allocations: 8 kB / 434.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001985/0.3883, allocations: 1.6 MB / 436.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3883, allocations: 0 / 436.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007556/0.3891, allocations: 199.7 kB / 436.4 MB, free: 4.195 MB / 350.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.0011/0.3902, allocations: 474.4 kB / 436.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.3913, allocations: 0.502 MB / 437.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3913, allocations: 0 / 437.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005306/0.3918, allocations: 307.2 kB / 437.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009439/0.3928, allocations: 209.2 kB / 437.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.3967, allocations: 2.631 MB / 440.5 MB, free: 216 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009268/0.3977, allocations: 1.257 MB / 441.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005461/0.3983, allocations: 215.8 kB / 442 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.3985, allocations: 67.44 kB / 442 MB, free: 14.64 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3985, allocations: 0 / 442 MB, free: 14.64 MB / 366.1 MB Notification: Performance of Templates: time 0.02753/0.426, allocations: 14.14 MB / 456.2 MB, free: 0.6133 MB / 366.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