Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 114.2 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.001101/0.001101, 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 47.92 kB / 352 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2487, allocations: 49.44 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006736/0.2554, allocations: 6.011 MB / 407.4 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003072/0.2585, allocations: 2.139 MB / 409.6 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003841/0.2589, allocations: 15.94 kB / 409.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001362/0.2603, allocations: 0.6225 MB / 410.2 MB, free: 88 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007615/0.2611, allocations: 417.7 kB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000856/0.262, allocations: 405.5 kB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001503/0.2635, allocations: 1.311 MB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007285/0.2642, allocations: 471.1 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006384/0.2649, allocations: 0.4906 MB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007816/0.2657, allocations: 0.5877 MB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001951/0.2659, allocations: 116 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003432/0.2662, allocations: 176 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004807/0.2667, allocations: 0.6467 MB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009248/0.2676, allocations: 0.8894 MB / 415.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002171/0.2698, allocations: 2.62 MB / 418.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2698, allocations: 4 kB / 418.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2698, allocations: 4 kB / 418.3 MB, free: 7.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.918e-05/0.2699, allocations: 0 / 418.3 MB, free: 7.934 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004058/0.274, allocations: 2.356 MB / 420.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.274, allocations: 12.03 kB / 420.7 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002837/0.2743, allocations: 210.3 kB / 420.9 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002559/0.2769, allocations: 1.679 MB / 422.5 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.277, allocations: 100.7 kB / 422.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.552e-05/0.2771, allocations: 60 kB / 422.7 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.2785, allocations: 0.8297 MB / 423.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.2785, allocations: 4 kB / 423.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.764e-05/0.2786, allocations: 31.98 kB / 423.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.2786, allocations: 16 kB / 423.6 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.2797, allocations: 0.5438 MB / 424.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005175/0.2848, allocations: 3.993 MB / 428.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.2861, allocations: 0.5245 MB / 428.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007496/0.2869, allocations: 373.2 kB / 429 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.2869, allocations: 4.281 kB / 429 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.287, allocations: 42.83 kB / 429.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.733e-06/0.287, allocations: 0 / 429.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002197/0.2892, allocations: 0.9411 MB / 430 MB, free: 11.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.2893, allocations: 265 kB / 430.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003736/0.293, allocations: 3.144 MB / 433.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.584e-05/0.2931, allocations: 37.7 kB / 433.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006921/0.2938, allocations: 0.8606 MB / 434.3 MB, free: 7.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.281e-05/0.2939, allocations: 126.2 kB / 434.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.2941, allocations: 94.16 kB / 434.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.2942, allocations: 326 kB / 434.8 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004705/0.2946, allocations: 213 kB / 435 MB, free: 6.695 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005765/0.2952, allocations: 394 kB / 435.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009608/0.2962, allocations: 0.5168 MB / 435.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2962, allocations: 0 / 435.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001412/0.2976, allocations: 0.7766 MB / 436.7 MB, free: 4.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2977, allocations: 8 kB / 436.7 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2977, allocations: 4.078 kB / 436.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002672/0.298, allocations: 68.81 kB / 436.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000465/0.2984, allocations: 120 kB / 436.9 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001666/0.3001, allocations: 1.79 MB / 438.7 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005333/0.3007, allocations: 79.5 kB / 438.8 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.3007, allocations: 16 kB / 438.8 MB, free: 2.664 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0007535/0.3015, allocations: 0.6615 MB / 439.5 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.3017, allocations: 189.6 kB / 439.6 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.302, allocations: 218.5 kB / 439.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.302, allocations: 0 / 439.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.302, allocations: 0 / 439.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007987/0.3028, allocations: 438.7 kB / 440.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/0.303, allocations: 16 kB / 440.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005562/0.3036, allocations: 47.95 kB / 440.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.3037, allocations: 39.94 kB / 440.4 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002013/0.3057, allocations: 0.7433 MB / 441.1 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001552/0.3073, allocations: 0.9931 MB / 442.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004342/0.3077, allocations: 204.1 kB / 442.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002826/0.3105, allocations: 2.247 MB / 444.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of Backend: time 6.11e-07/0.3106, allocations: 0 / 444.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002707/0.3133, allocations: 1.104 MB / 445.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of SimCode: time 0.005122/0.3184, allocations: 4.008 MB / 449.7 MB, free: 7.883 MB / 366.1 MB Notification: Performance of Templates: time 0.03434/0.3528, allocations: 18.55 MB / 468.2 MB, free: 5.48 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches