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.001087/0.001087, allocations: 113 kB / 17.74 MB, free: 5.184 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.001061/0.001061, allocations: 193.6 kB / 18.67 MB, free: 4.262 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.308/1.308, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 51.92 kB / 352 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2319, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004988/0.237, allocations: 3.985 MB / 405.4 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002697/0.2397, allocations: 1.914 MB / 407.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/0.24, allocations: 11.94 kB / 407.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.2411, allocations: 0.5952 MB / 407.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005509/0.2417, allocations: 346.2 kB / 408.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005896/0.2423, allocations: 282.1 kB / 408.5 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009444/0.2433, allocations: 0.9819 MB / 409.5 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004509/0.2437, allocations: 348.5 kB / 409.8 MB, free: 424 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003665/0.2441, allocations: 386.8 kB / 410.2 MB, free: 36 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005295/0.2446, allocations: 498.2 kB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.2448, allocations: 80 kB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002479/0.245, allocations: 136 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003159/0.2453, allocations: 478.6 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004981/0.2459, allocations: 0.6252 MB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00146/0.2473, allocations: 1.748 MB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2473, allocations: 0 / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2473, allocations: 0 / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.2474, allocations: 4 kB / 413.8 MB, free: 12.48 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.002619/0.25, allocations: 1.814 MB / 415.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.25, allocations: 8.031 kB / 415.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.2503, allocations: 159 kB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001524/0.2518, allocations: 1.177 MB / 416.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.835e-05/0.2519, allocations: 92.97 kB / 417 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.011e-05/0.252, allocations: 55.84 kB / 417.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.2531, allocations: 0.6595 MB / 417.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.2531, allocations: 0 / 417.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.867e-05/0.2531, allocations: 28 kB / 417.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.2532, allocations: 19.92 kB / 417.8 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007533/0.2539, allocations: 435.7 kB / 418.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003871/0.2578, allocations: 2.871 MB / 421.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009568/0.2588, allocations: 426.5 kB / 421.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/0.2594, allocations: 316.7 kB / 421.8 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.2595, allocations: 4 kB / 421.8 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.2595, allocations: 39.06 kB / 421.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.864e-06/0.2595, allocations: 0 / 421.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001798/0.2613, allocations: 0.7749 MB / 422.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.2614, allocations: 261 kB / 422.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002549/0.264, allocations: 2.23 MB / 425.1 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.264, allocations: 33.7 kB / 425.1 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005056/0.2646, allocations: 0.6273 MB / 425.7 MB, free: 80 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.2647, allocations: 114.5 kB / 425.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.2648, allocations: 77.98 kB / 425.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2649, allocations: 333.9 kB / 426.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00033/0.2653, allocations: 156.7 kB / 426.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004202/0.2657, allocations: 304.5 kB / 426.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006692/0.2664, allocations: 401.4 kB / 427.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.2664, allocations: 4 kB / 427.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001291/0.2677, allocations: 0.6292 MB / 427.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.2677, allocations: 11.94 kB / 427.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.2677, allocations: 12.06 kB / 427.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002663/0.268, allocations: 60.81 kB / 427.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003698/0.2684, allocations: 91.88 kB / 427.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/0.27, allocations: 1.767 MB / 429.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/0.2705, allocations: 59.52 kB / 429.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.2705, allocations: 8 kB / 429.7 MB, free: 11.83 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.0005708/0.2711, allocations: 497.5 kB / 430.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.2713, allocations: 134.4 kB / 430.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.2715, allocations: 165.4 kB / 430.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.2715, allocations: 4 kB / 430.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.2715, allocations: 0 / 430.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.2715, allocations: 3.984 kB / 430.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/0.274, allocations: 1.65 MB / 432.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.274, allocations: 4.062 kB / 432.2 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.2744, allocations: 71.89 kB / 432.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001832/0.2745, allocations: 56.81 kB / 432.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.2746, allocations: 15.92 kB / 432.3 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001452/0.276, allocations: 1.716 MB / 434 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.2761, allocations: 7.969 kB / 434 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001424/0.2775, allocations: 0.8023 MB / 434.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004174/0.2779, allocations: 335.2 kB / 435.2 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.2781, allocations: 12 kB / 435.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004838/0.2785, allocations: 43.95 kB / 435.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.344e-05/0.2786, allocations: 35.89 kB / 435.3 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.2787, allocations: 12 kB / 435.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001926/0.2806, allocations: 1.596 MB / 436.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2806, allocations: 0 / 436.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006916/0.2813, allocations: 199.7 kB / 437.1 MB, free: 4.219 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.001013/0.2823, allocations: 465.8 kB / 437.5 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.2834, allocations: 0.4983 MB / 438 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.2834, allocations: 0 / 438 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005325/0.2839, allocations: 314.9 kB / 438.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009042/0.2849, allocations: 212.9 kB / 438.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003748/0.2886, allocations: 2.691 MB / 441.2 MB, free: 164 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008697/0.2895, allocations: 1.245 MB / 442.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.2897, allocations: 75.44 kB / 442.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2898, allocations: 0 / 442.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of Templates: time 0.02821/0.318, allocations: 20.99 MB / 463.5 MB, free: 9.875 MB / 382.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