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.001388/0.001388, allocations: 109.8 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 209.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 247.6 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 55.91 kB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2438, allocations: 50.55 MB / 409.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006132/0.25, allocations: 5.539 MB / 415.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002587/0.2526, allocations: 1.874 MB / 417.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002776/0.2529, allocations: 15.94 kB / 417.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009473/0.2539, allocations: 0.5174 MB / 417.9 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006362/0.2545, allocations: 386 kB / 418.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00069/0.2552, allocations: 383 kB / 418.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008225/0.256, allocations: 0.9003 MB / 419.5 MB, free: 8.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004435/0.2565, allocations: 336.8 kB / 419.8 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003468/0.2569, allocations: 366.8 kB / 420.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004447/0.2573, allocations: 438.4 kB / 420.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.2574, allocations: 80 kB / 420.7 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.2576, allocations: 120 kB / 420.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003732/0.258, allocations: 0.5882 MB / 421.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005045/0.2585, allocations: 0.7455 MB / 422.2 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001533/0.2601, allocations: 2.122 MB / 424.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2601, allocations: 0 / 424.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2601, allocations: 0 / 424.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.2601, allocations: 0 / 424.3 MB, free: 3.359 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.002689/0.2628, allocations: 2.087 MB / 426.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.2628, allocations: 8.031 kB / 426.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002304/0.2631, allocations: 186.6 kB / 426.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.265, allocations: 1.51 MB / 428.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.518e-05/0.2651, allocations: 70.69 kB / 428.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.766e-05/0.2652, allocations: 48 kB / 428.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009617/0.2661, allocations: 0.5776 MB / 428.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.2661, allocations: 4 kB / 428.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.149e-05/0.2662, allocations: 20 kB / 428.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.2662, allocations: 12 kB / 428.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006637/0.2669, allocations: 351.7 kB / 429.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00389/0.2708, allocations: 3.231 MB / 432.4 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.2719, allocations: 385 kB / 432.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004462/0.2723, allocations: 189.9 kB / 432.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.2724, allocations: 4 kB / 432.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.2724, allocations: 38.56 kB / 433 MB, free: 10.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.804e-06/0.2724, allocations: 0 / 433 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001798/0.2742, allocations: 0.7 MB / 433.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.651e-05/0.2743, allocations: 217.6 kB / 433.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003212/0.2775, allocations: 2.893 MB / 436.8 MB, free: 6.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.306e-05/0.2776, allocations: 33.7 kB / 436.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006352/0.2782, allocations: 0.7854 MB / 437.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.289e-05/0.2783, allocations: 74.89 kB / 437.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.2784, allocations: 66.03 kB / 437.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.41e-05/0.2785, allocations: 326 kB / 438 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003257/0.2788, allocations: 116.6 kB / 438.2 MB, free: 5.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004081/0.2793, allocations: 292.7 kB / 438.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006599/0.2799, allocations: 365.5 kB / 438.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2799, allocations: 0 / 438.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001109/0.2811, allocations: 0.5587 MB / 439.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2811, allocations: 8.031 kB / 439.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.2811, allocations: 8.062 kB / 439.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.2814, allocations: 60.83 kB / 439.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.2817, allocations: 71.89 kB / 439.5 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/0.2832, allocations: 1.728 MB / 441.2 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004703/0.2836, allocations: 59.56 kB / 441.3 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.391e-05/0.2837, allocations: 16 kB / 441.3 MB, free: 1.617 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.0006807/0.2844, allocations: 0.5795 MB / 441.9 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.2846, allocations: 169.9 kB / 442.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.2857, allocations: 0.5064 MB / 442.6 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.2857, allocations: 4 kB / 442.6 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.2857, allocations: 0 / 442.6 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2857, allocations: 0 / 442.6 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002551/0.2883, allocations: 1.694 MB / 444.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.2883, allocations: 4 kB / 444.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002338/0.2886, allocations: 47.94 kB / 444.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001675/0.2887, allocations: 44.83 kB / 444.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.2888, allocations: 8 kB / 444.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001414/0.2902, allocations: 1.677 MB / 446 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2902, allocations: 0 / 446 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/0.2916, allocations: 0.7095 MB / 446.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005114/0.2922, allocations: 378.9 kB / 447.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.2923, allocations: 8 kB / 447.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004457/0.2928, allocations: 43.95 kB / 447.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.432e-05/0.2929, allocations: 35.95 kB / 447.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.2929, allocations: 4 kB / 447.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002693/0.2956, allocations: 2.079 MB / 449.3 MB, free: 9.332 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2956, allocations: 0 / 449.3 MB, free: 9.332 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007421/0.2963, allocations: 199.6 kB / 449.5 MB, free: 9.137 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000806/0.2972, allocations: 360 kB / 449.8 MB, free: 8.895 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.2982, allocations: 437.1 kB / 450.3 MB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.2982, allocations: 0.75 kB / 450.3 MB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005385/0.2988, allocations: 278.6 kB / 450.5 MB, free: 8.176 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.2999, allocations: 225.5 kB / 450.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004876/0.3048, allocations: 3.116 MB / 453.9 MB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.3058, allocations: 1.355 MB / 455.2 MB, free: 3.406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003015/0.3061, allocations: 83.44 kB / 455.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3061, allocations: 0 / 455.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of Templates: time 0.03361/0.3398, allocations: 24.94 MB / 480.3 MB, free: 10.39 MB / 398.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