Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001422/0.001422, allocations: 113.2 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001792/0.001793, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2386, allocations: 50.53 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007722/0.2464, allocations: 5.544 MB / 415.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00317/0.2496, allocations: 1.882 MB / 417.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004316/0.25, allocations: 11.94 kB / 417.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.2511, allocations: 0.5225 MB / 417.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008414/0.252, allocations: 389.9 kB / 418.3 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008063/0.2528, allocations: 370.8 kB / 418.6 MB, free: 8.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.2538, allocations: 0.9042 MB / 419.5 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005089/0.2543, allocations: 336.8 kB / 419.9 MB, free: 7.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004336/0.2548, allocations: 366.8 kB / 420.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005165/0.2553, allocations: 446.4 kB / 420.6 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.2554, allocations: 80 kB / 420.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.2557, allocations: 123.9 kB / 420.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004485/0.2561, allocations: 0.5805 MB / 421.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007405/0.2569, allocations: 0.7415 MB / 422.2 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001787/0.2587, allocations: 2.126 MB / 424.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.2587, allocations: 0 / 424.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2587, allocations: 0 / 424.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.118e-05/0.2587, allocations: 0 / 424.3 MB, free: 3.148 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.0032/0.2619, allocations: 2.087 MB / 426.4 MB, free: 1.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.262, allocations: 8.031 kB / 426.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002368/0.2622, allocations: 186.6 kB / 426.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002154/0.2644, allocations: 1.509 MB / 428.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.556e-05/0.2645, allocations: 62.7 kB / 428.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.008e-05/0.2646, allocations: 48 kB / 428.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.2656, allocations: 0.5854 MB / 428.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.2656, allocations: 3.938 kB / 428.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.012e-05/0.2656, allocations: 31.88 kB / 428.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.2657, allocations: 12 kB / 428.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007073/0.2664, allocations: 343.8 kB / 429.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004142/0.2705, allocations: 3.238 MB / 432.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.2717, allocations: 380.8 kB / 432.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004613/0.2721, allocations: 188.3 kB / 433 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.2722, allocations: 0 / 433 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.2722, allocations: 42.5 kB / 433 MB, free: 10.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.202e-06/0.2722, allocations: 0 / 433 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001776/0.274, allocations: 0.6967 MB / 433.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.905e-05/0.2741, allocations: 209.6 kB / 433.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003265/0.2774, allocations: 2.901 MB / 436.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.2774, allocations: 33.7 kB / 436.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006583/0.2781, allocations: 0.7815 MB / 437.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.055e-05/0.2781, allocations: 82.89 kB / 437.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.2783, allocations: 62.03 kB / 437.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.2784, allocations: 322 kB / 438.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003284/0.2787, allocations: 124.6 kB / 438.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004468/0.2792, allocations: 288.8 kB / 438.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000708/0.2799, allocations: 357.5 kB / 438.8 MB, free: 4.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2799, allocations: 4 kB / 438.8 MB, free: 4.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001062/0.281, allocations: 0.5587 MB / 439.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.281, allocations: 8.062 kB / 439.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.281, allocations: 4 kB / 439.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.2813, allocations: 60.81 kB / 439.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.2816, allocations: 75.89 kB / 439.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.2834, allocations: 1.728 MB / 441.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004077/0.2838, allocations: 55.52 kB / 441.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.2839, allocations: 19.98 kB / 441.3 MB, free: 1.406 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.0006036/0.2845, allocations: 0.5757 MB / 441.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001901/0.2847, allocations: 169.9 kB / 442.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001166/0.2858, allocations: 0.5064 MB / 442.6 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2859, allocations: 3.984 kB / 442.6 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2859, allocations: 0 / 442.6 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006836/0.2866, allocations: 375 kB / 442.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.2867, allocations: 15.94 kB / 443 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004404/0.2872, allocations: 39.95 kB / 443 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.497e-05/0.2872, allocations: 27.95 kB / 443 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001588/0.2888, allocations: 0.5336 MB / 443.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001155/0.29, allocations: 0.7059 MB / 444.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000351/0.2904, allocations: 123.8 kB / 444.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002785/0.2932, allocations: 2.075 MB / 446.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of Backend: time 8.22e-07/0.2932, allocations: 4 kB / 446.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.2954, allocations: 0.8382 MB / 447.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of SimCode: time 0.004706/0.3001, allocations: 3.469 MB / 450.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of Templates: time 0.02747/0.3276, allocations: 16.29 MB / 467.1 MB, free: 7.727 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches