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.0007486/0.0007517, allocations: 94.56 kB / 17.31 MB, free: 5.656 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.0007798/0.0007798, allocations: 179.9 kB / 18.21 MB, free: 5.25 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.264/1.264, allocations: 223.3 MB / 242.3 MB, free: 92 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002145/0.0002145, allocations: 7.984 kB / 302.1 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07254/0.07277, allocations: 50.42 MB / 352.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.003712/0.07652, allocations: 3.602 MB / 356.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002293/0.07883, allocations: 1.843 MB / 357.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001853/0.07903, allocations: 11.94 kB / 358 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00101/0.08004, allocations: 0.5646 MB / 358.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004506/0.08051, allocations: 306.7 kB / 358.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.08102, allocations: 259.1 kB / 359.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008368/0.08187, allocations: 0.9311 MB / 360 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003961/0.08228, allocations: 308.1 kB / 360.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.08256, allocations: 306.7 kB / 360.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004321/0.08301, allocations: 446.3 kB / 361 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.832e-05/0.08309, allocations: 35.98 kB / 361.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.08326, allocations: 91.92 kB / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002899/0.08356, allocations: 426.7 kB / 361.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004291/0.084, allocations: 0.5877 MB / 362.2 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.08503, allocations: 1.391 MB / 363.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.08505, allocations: 0 / 363.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.08506, allocations: 3.938 kB / 363.6 MB, free: 8.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.08507, allocations: 0 / 363.6 MB, free: 8.559 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.002215/0.08729, allocations: 1.589 MB / 365.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.08733, allocations: 8.031 kB / 365.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.08754, allocations: 159 kB / 365.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/0.08901, allocations: 1.165 MB / 366.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003147/0.08933, allocations: 144.9 kB / 366.6 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.659e-05/0.08942, allocations: 51.94 kB / 366.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.09054, allocations: 0.679 MB / 367.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.09056, allocations: 0 / 367.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.609e-05/0.09063, allocations: 24 kB / 367.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.09065, allocations: 15.98 kB / 367.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008456/0.0915, allocations: 455.7 kB / 367.8 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003859/0.09537, allocations: 2.922 MB / 370.8 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.09648, allocations: 474.5 kB / 371.2 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006974/0.09719, allocations: 332.7 kB / 371.5 MB, free: 300 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.09723, allocations: 0 / 371.5 MB, free: 300 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.09726, allocations: 38.56 kB / 371.6 MB, free: 252 kB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.252e-06/0.09727, allocations: 0 / 371.6 MB, free: 252 kB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.1325/0.2298, allocations: 0.8291 MB / 372.4 MB, free: 23.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.2299, allocations: 264.8 kB / 372.7 MB, free: 23.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002908/0.2328, allocations: 2.233 MB / 374.9 MB, free: 23.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.468e-05/0.2328, allocations: 32.8 kB / 374.9 MB, free: 23.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004681/0.2333, allocations: 0.6436 MB / 375.6 MB, free: 23.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.982e-05/0.2334, allocations: 106.8 kB / 375.7 MB, free: 23.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.2334, allocations: 37.22 kB / 375.7 MB, free: 23.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.297e-05/0.2335, allocations: 322.8 kB / 376 MB, free: 22.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004014/0.2339, allocations: 180.5 kB / 376.2 MB, free: 22.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004481/0.2344, allocations: 327.8 kB / 376.5 MB, free: 22.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008041/0.2352, allocations: 426.9 kB / 376.9 MB, free: 22.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2352, allocations: 0 / 376.9 MB, free: 22.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001645/0.2368, allocations: 0.687 MB / 377.6 MB, free: 22.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.2369, allocations: 8.375 kB / 377.6 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.2369, allocations: 3.109 kB / 377.6 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002734/0.2372, allocations: 70.45 kB / 377.7 MB, free: 22.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000418/0.2376, allocations: 103 kB / 377.8 MB, free: 22.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.2389, allocations: 1.622 MB / 379.4 MB, free: 20.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004628/0.2394, allocations: 76.09 kB / 379.5 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.2394, allocations: 12.19 kB / 379.5 MB, free: 20.5 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.0004846/0.2399, allocations: 492.2 kB / 380 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.2401, allocations: 134.1 kB / 380.1 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001938/0.2403, allocations: 162.4 kB / 380.3 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2403, allocations: 11.09 kB / 380.3 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2403, allocations: 1.562 kB / 380.3 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.2403, allocations: 1.406 kB / 380.3 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002541/0.2428, allocations: 1.708 MB / 382 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2429, allocations: 5.766 kB / 382 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.2432, allocations: 80.45 kB / 382.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.2434, allocations: 59.11 kB / 382.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.2434, allocations: 9.078 kB / 382.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.2446, allocations: 1.571 MB / 383.7 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2446, allocations: 4.938 kB / 383.7 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.2462, allocations: 0.8644 MB / 384.6 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003897/0.2466, allocations: 336.8 kB / 384.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.2467, allocations: 12.67 kB / 384.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005167/0.2472, allocations: 67.33 kB / 385 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.524e-05/0.2473, allocations: 32.06 kB / 385 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.2473, allocations: 13.97 kB / 385.1 MB, free: 17.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001895/0.2492, allocations: 1.6 MB / 386.7 MB, free: 16.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2493, allocations: 1.594 kB / 386.7 MB, free: 16.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006621/0.2499, allocations: 200.8 kB / 386.9 MB, free: 16.64 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.001009/0.2509, allocations: 469.5 kB / 387.3 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.252, allocations: 0.5284 MB / 387.8 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.252, allocations: 1.25 kB / 387.8 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005637/0.2526, allocations: 334 kB / 388.2 MB, free: 16.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.2537, allocations: 201.4 kB / 388.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003439/0.2571, allocations: 3.162 MB / 391.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006295/0.2578, allocations: 1.249 MB / 392.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/0.258, allocations: 75.41 kB / 392.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.258, allocations: 0 / 392.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of Templates: time 0.0209/0.2789, allocations: 20.69 MB / 413.5 MB, free: 10.71 MB / 318.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/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