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.001135/0.001135, allocations: 98.53 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001725/0.001725, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.7 MB / 247.5 MB, free: 11.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002431/0.0002431, allocations: 4 kB / 308.4 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08819/0.08845, allocations: 51.53 MB / 359.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005426/0.09393, allocations: 5.114 MB / 365 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002836/0.0968, allocations: 1.816 MB / 366.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004198/0.09724, allocations: 15.94 kB / 366.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009761/0.09823, allocations: 0.4944 MB / 367.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000756/0.099, allocations: 338.5 kB / 367.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007589/0.09978, allocations: 339 kB / 368 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009834/0.1008, allocations: 0.8379 MB / 368.9 MB, free: 4.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004643/0.1012, allocations: 295.6 kB / 369.1 MB, free: 3.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004015/0.1017, allocations: 290.8 kB / 369.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004816/0.1021, allocations: 386.4 kB / 369.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.833e-05/0.1022, allocations: 32 kB / 369.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.1024, allocations: 75.92 kB / 369.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003904/0.1028, allocations: 0.5375 MB / 370.4 MB, free: 2.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006095/0.1034, allocations: 0.6964 MB / 371.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.1048, allocations: 1.715 MB / 372.9 MB, free: 268 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1048, allocations: 0 / 372.9 MB, free: 268 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1048, allocations: 0 / 372.9 MB, free: 268 kB / 302.1 MB Notification: Performance of Transformations before backend: time 4.576e-05/0.1048, allocations: 4 kB / 372.9 MB, free: 264 kB / 302.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.1703/0.2752, allocations: 1.803 MB / 374.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.2752, allocations: 9.281 kB / 374.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005704/0.2758, allocations: 190 kB / 374.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002876/0.2787, allocations: 1.485 MB / 376.3 MB, free: 17.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002656/0.279, allocations: 97.95 kB / 376.4 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.2791, allocations: 49.62 kB / 376.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.2806, allocations: 0.5993 MB / 377.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.2806, allocations: 4.969 kB / 377.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-05/0.2807, allocations: 25.66 kB / 377.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.2807, allocations: 11.84 kB / 377.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008418/0.2816, allocations: 361.7 kB / 377.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005809/0.2874, allocations: 3.28 MB / 380.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.2887, allocations: 434.9 kB / 381.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005009/0.2893, allocations: 194.2 kB / 381.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.2893, allocations: 6.5 kB / 381.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.2893, allocations: 41.52 kB / 381.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.755e-06/0.2894, allocations: 4 kB / 381.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002129/0.2915, allocations: 0.7436 MB / 382.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.2916, allocations: 215.5 kB / 382.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005065/0.2966, allocations: 2.903 MB / 385.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.937e-05/0.2967, allocations: 33.03 kB / 385.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007631/0.2975, allocations: 0.7855 MB / 386.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.749e-05/0.2976, allocations: 72.11 kB / 386.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.396e-05/0.2977, allocations: 40.22 kB / 386.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.643e-05/0.2978, allocations: 321.2 kB / 386.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004026/0.2982, allocations: 132.3 kB / 386.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.2986, allocations: 297.4 kB / 386.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007156/0.2993, allocations: 389.6 kB / 387.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.2994, allocations: 1 kB / 387.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001569/0.3009, allocations: 0.5789 MB / 387.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.301, allocations: 8.031 kB / 387.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.301, allocations: 7.469 kB / 387.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003331/0.3013, allocations: 64.7 kB / 388 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.3017, allocations: 83.41 kB / 388.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/0.3031, allocations: 1.572 MB / 389.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008201/0.3039, allocations: 74.03 kB / 389.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.496e-05/0.3039, allocations: 16.12 kB / 389.7 MB, free: 10.74 MB / 302.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.0009445/0.3049, allocations: 0.5743 MB / 390.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004373/0.3053, allocations: 162.5 kB / 390.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.3068, allocations: 0.5533 MB / 391 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.3069, allocations: 6.188 kB / 391 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.3069, allocations: 0.5625 kB / 391 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.351e-06/0.3069, allocations: 5.797 kB / 391 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003471/0.3104, allocations: 1.726 MB / 392.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.3104, allocations: 0 / 392.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.3106, allocations: 54.28 kB / 392.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001841/0.3108, allocations: 48.84 kB / 392.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.3109, allocations: 10.67 kB / 392.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.3119, allocations: 1.524 MB / 394.4 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.312, allocations: 1.375 kB / 394.4 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.3137, allocations: 0.7628 MB / 395.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007487/0.3144, allocations: 385 kB / 395.5 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003028/0.3147, allocations: 6.531 kB / 395.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005928/0.3153, allocations: 58.08 kB / 395.6 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.3155, allocations: 28.95 kB / 395.6 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.3155, allocations: 12.69 kB / 395.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003628/0.3191, allocations: 2.073 MB / 397.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3191, allocations: 0 / 397.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001227/0.3204, allocations: 202.4 kB / 397.9 MB, free: 5.98 MB / 302.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.0009485/0.3213, allocations: 363.2 kB / 398.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.3226, allocations: 462.5 kB / 398.7 MB, free: 5.539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.3226, allocations: 2.688 kB / 398.7 MB, free: 5.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005127/0.3231, allocations: 282.4 kB / 399 MB, free: 5.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.3247, allocations: 215.8 kB / 399.2 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005202/0.3299, allocations: 3.604 MB / 402.8 MB, free: 1.414 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000897/0.3308, allocations: 1.355 MB / 404.2 MB, free: 28 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003807/0.3312, allocations: 79.48 kB / 404.2 MB, free: 15.95 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3312, allocations: 4 kB / 404.2 MB, free: 15.94 MB / 318.1 MB Notification: Performance of Templates: time 0.03595/0.3672, allocations: 24.53 MB / 428.8 MB, free: 7.426 MB / 334.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