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.00157/0.00157, allocations: 110.3 kB / 17.75 MB, free: 5.355 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.001829/0.001829, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.368/1.368, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009903/0.0009903, allocations: 47.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2328, allocations: 49.42 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004903/0.2377, allocations: 3.985 MB / 405.4 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002661/0.2404, allocations: 1.906 MB / 407.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002368/0.2407, allocations: 11.94 kB / 407.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.2418, allocations: 0.5913 MB / 407.9 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005095/0.2423, allocations: 354.2 kB / 408.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006329/0.243, allocations: 282.8 kB / 408.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009161/0.2439, allocations: 0.9858 MB / 409.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004509/0.2444, allocations: 348.5 kB / 409.8 MB, free: 404 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003414/0.2447, allocations: 394.7 kB / 410.2 MB, free: 8 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005286/0.2453, allocations: 494.3 kB / 410.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.2454, allocations: 76 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002852/0.2457, allocations: 147.9 kB / 410.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004562/0.2462, allocations: 474.7 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005937/0.2468, allocations: 0.6329 MB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001592/0.2484, allocations: 1.756 MB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.2484, allocations: 0 / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.2484, allocations: 0 / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.2484, allocations: 0 / 413.8 MB, free: 12.44 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.002849/0.2513, allocations: 1.801 MB / 415.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.2513, allocations: 16.03 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002079/0.2515, allocations: 159 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.2534, allocations: 1.169 MB / 416.9 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.2535, allocations: 96.95 kB / 417 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.173e-05/0.2536, allocations: 59.84 kB / 417.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.2547, allocations: 0.6634 MB / 417.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.2547, allocations: 3.984 kB / 417.7 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.328e-05/0.2548, allocations: 24 kB / 417.8 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.2548, allocations: 12 kB / 417.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007649/0.2556, allocations: 435.7 kB / 418.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003984/0.2596, allocations: 2.86 MB / 421.1 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009435/0.2605, allocations: 434.5 kB / 421.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006318/0.2612, allocations: 316.3 kB / 421.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-05/0.2612, allocations: 8 kB / 421.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.2612, allocations: 43.05 kB / 421.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.2612, allocations: 0 / 421.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001792/0.263, allocations: 0.7671 MB / 422.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.2632, allocations: 261 kB / 422.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002533/0.2657, allocations: 2.23 MB / 425.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.2657, allocations: 29.7 kB / 425.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004935/0.2662, allocations: 0.6429 MB / 425.8 MB, free: 48 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.615e-05/0.2663, allocations: 106.5 kB / 425.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.2665, allocations: 81.97 kB / 425.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.475e-05/0.2666, allocations: 321.9 kB / 426.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.2669, allocations: 160.7 kB / 426.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004213/0.2674, allocations: 304.5 kB / 426.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006665/0.268, allocations: 401.4 kB / 427.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.268, allocations: 0 / 427.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001246/0.2693, allocations: 0.6409 MB / 427.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.2693, allocations: 8 kB / 427.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2693, allocations: 0 / 427.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002662/0.2696, allocations: 68.75 kB / 427.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003733/0.27, allocations: 96 kB / 427.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.2716, allocations: 1.763 MB / 429.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004163/0.272, allocations: 59.45 kB / 429.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.2721, allocations: 20.08 kB / 429.8 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.0004993/0.2726, allocations: 489.5 kB / 430.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.2728, allocations: 134.3 kB / 430.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001921/0.273, allocations: 161.5 kB / 430.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.273, allocations: 7.922 kB / 430.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.273, allocations: 0 / 430.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000575/0.2736, allocations: 327.3 kB / 430.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.2737, allocations: 8 kB / 430.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004767/0.2742, allocations: 52.06 kB / 430.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.59e-05/0.2743, allocations: 31.89 kB / 430.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001506/0.2758, allocations: 0.5843 MB / 431.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001195/0.277, allocations: 0.8181 MB / 432.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002987/0.2773, allocations: 163.9 kB / 432.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001905/0.2792, allocations: 1.6 MB / 434.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of Backend: time 5.21e-07/0.2792, allocations: 0 / 434.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002459/0.2817, allocations: 1.045 MB / 435.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of SimCode: time 0.003773/0.2855, allocations: 3.079 MB / 438.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of Templates: time 0.02505/0.3106, allocations: 15 MB / 453.2 MB, free: 4.566 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/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