Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 106.3 kB / 17.74 MB, free: 5.336 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.001123/0.001123, allocations: 185.4 kB / 18.67 MB, free: 4.418 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.313/1.313, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000988/0.000988, allocations: 47.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2445, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006405/0.251, allocations: 5.493 MB / 406.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.2534, allocations: 1.726 MB / 408.6 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002417/0.2537, allocations: 11.94 kB / 408.6 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009317/0.2546, allocations: 0.5213 MB / 409.1 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005406/0.2552, allocations: 350.1 kB / 409.5 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.2559, allocations: 373.1 kB / 409.9 MB, free: 432 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008549/0.2568, allocations: 0.8925 MB / 410.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004747/0.2573, allocations: 344.8 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003681/0.2576, allocations: 366.8 kB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005056/0.2582, allocations: 442.4 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.2583, allocations: 76 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001964/0.2585, allocations: 120 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004355/0.2589, allocations: 0.5805 MB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006269/0.2596, allocations: 0.7415 MB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001813/0.2614, allocations: 2.118 MB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.2614, allocations: 4 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2614, allocations: 4 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.2614, allocations: 0 / 415.5 MB, free: 10.73 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003073/0.2645, allocations: 2.064 MB / 417.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.2646, allocations: 11.89 kB / 417.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002556/0.2648, allocations: 186.6 kB / 417.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002261/0.2671, allocations: 1.498 MB / 419.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.2672, allocations: 66.7 kB / 419.3 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.295e-05/0.2673, allocations: 51.88 kB / 419.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.2683, allocations: 0.5854 MB / 420 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.2683, allocations: 0 / 420 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.254e-05/0.2684, allocations: 24 kB / 420 MB, free: 6.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.2684, allocations: 15.94 kB / 420 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007/0.2691, allocations: 347.7 kB / 420.3 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004307/0.2734, allocations: 3.234 MB / 423.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.2746, allocations: 384.2 kB / 424 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.2751, allocations: 180.8 kB / 424.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.2751, allocations: 8 kB / 424.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.854e-05/0.2752, allocations: 34.56 kB / 424.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.764e-06/0.2752, allocations: 0 / 424.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001805/0.277, allocations: 0.695 MB / 424.9 MB, free: 1.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.752e-05/0.2771, allocations: 213.6 kB / 425.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003346/0.2805, allocations: 2.884 MB / 428 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.2805, allocations: 33.7 kB / 428 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006873/0.2812, allocations: 0.7814 MB / 428.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.089e-05/0.2813, allocations: 74.91 kB / 428.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.2814, allocations: 65.94 kB / 428.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.2816, allocations: 322 kB / 429.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.2819, allocations: 124.6 kB / 429.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004276/0.2823, allocations: 288.9 kB / 429.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006909/0.283, allocations: 361.8 kB / 430 MB, free: 11.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2831, allocations: 4 kB / 430 MB, free: 11.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001078/0.2841, allocations: 0.5587 MB / 430.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2842, allocations: 8 kB / 430.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2842, allocations: 0 / 430.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002538/0.2844, allocations: 69 kB / 430.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.2847, allocations: 71.89 kB / 430.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.2863, allocations: 1.724 MB / 432.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004194/0.2867, allocations: 59.66 kB / 432.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.2868, allocations: 19.94 kB / 432.5 MB, free: 9.027 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0006291/0.2874, allocations: 0.5795 MB / 433.1 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/0.2876, allocations: 165.9 kB / 433.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.2888, allocations: 0.5103 MB / 433.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.2888, allocations: 0 / 433.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.2888, allocations: 4 kB / 433.7 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006703/0.2895, allocations: 382.8 kB / 434.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.2896, allocations: 7.938 kB / 434.1 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004307/0.2901, allocations: 47.95 kB / 434.2 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.477e-05/0.2902, allocations: 23.97 kB / 434.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001549/0.2917, allocations: 0.5276 MB / 434.7 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001165/0.2929, allocations: 0.7065 MB / 435.4 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003035/0.2932, allocations: 127.9 kB / 435.6 MB, free: 5.883 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002434/0.2957, allocations: 2.059 MB / 437.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of Backend: time 3.21e-07/0.2957, allocations: 0 / 437.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002234/0.2979, allocations: 0.8553 MB / 438.5 MB, free: 3.113 MB / 350.1 MB Notification: Performance of SimCode: time 0.004218/0.3021, allocations: 3.463 MB / 441.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of Templates: time 0.02585/0.328, allocations: 16.34 MB / 458.3 MB, free: 15.34 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches