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.001578/0.001578, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 59.44 kB / 307.6 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.09016, allocations: 50.53 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006605/0.09681, allocations: 5.535 MB / 363.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002806/0.09964, allocations: 1.874 MB / 365.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003103/0.09999, allocations: 15.94 kB / 365.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009772/0.101, allocations: 0.5291 MB / 366.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006563/0.1017, allocations: 385.9 kB / 366.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007202/0.1024, allocations: 374.9 kB / 366.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008495/0.1033, allocations: 0.8965 MB / 367.7 MB, free: 4.492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004803/0.1038, allocations: 332.8 kB / 368.1 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004261/0.1042, allocations: 358.7 kB / 368.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004524/0.1047, allocations: 446.4 kB / 368.8 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.1048, allocations: 80 kB / 368.9 MB, free: 3.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002171/0.105, allocations: 123.9 kB / 369 MB, free: 3.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004037/0.1054, allocations: 0.5883 MB / 369.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005614/0.106, allocations: 0.7376 MB / 370.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1518/0.2578, allocations: 2.094 MB / 372.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2579, allocations: 0 / 372.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.2579, allocations: 1.109 kB / 372.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.059e-05/0.258, allocations: 0 / 372.5 MB, free: 13.28 MB / 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.003369/0.2613, allocations: 2.077 MB / 374.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2614, allocations: 10.12 kB / 374.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.2617, allocations: 186.2 kB / 374.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/0.2639, allocations: 1.495 MB / 376.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/0.2641, allocations: 93.52 kB / 376.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.707e-05/0.2642, allocations: 50.09 kB / 376.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009702/0.2652, allocations: 0.5872 MB / 377 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.2652, allocations: 1.891 kB / 377 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.536e-05/0.2653, allocations: 23.78 kB / 377 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.2653, allocations: 12.38 kB / 377 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006616/0.2659, allocations: 340.9 kB / 377.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003981/0.2699, allocations: 3.262 MB / 380.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.271, allocations: 385.5 kB / 381 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004494/0.2715, allocations: 182.2 kB / 381.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.2715, allocations: 2.688 kB / 381.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.2715, allocations: 42.36 kB / 381.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.094e-06/0.2715, allocations: 0 / 381.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001758/0.2733, allocations: 0.6988 MB / 381.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.2734, allocations: 209 kB / 382.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003358/0.2767, allocations: 2.901 MB / 385 MB, free: 8.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.2768, allocations: 32.27 kB / 385 MB, free: 8.465 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005615/0.2773, allocations: 0.784 MB / 385.8 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.2774, allocations: 75.64 kB / 385.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.2775, allocations: 66.7 kB / 385.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.775e-05/0.2776, allocations: 321.7 kB / 386.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003394/0.2779, allocations: 121.5 kB / 386.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004133/0.2783, allocations: 291.9 kB / 386.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006303/0.279, allocations: 364.1 kB / 387 MB, free: 6.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.279, allocations: 0.8125 kB / 387 MB, free: 6.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001128/0.2801, allocations: 0.5654 MB / 387.6 MB, free: 6.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.2802, allocations: 7.094 kB / 387.6 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.2802, allocations: 5.891 kB / 387.6 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002648/0.2804, allocations: 60.67 kB / 387.7 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.2807, allocations: 70.28 kB / 387.7 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/0.282, allocations: 1.738 MB / 389.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/0.2825, allocations: 62.3 kB / 389.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.2825, allocations: 20.03 kB / 389.5 MB, free: 5.035 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.0006344/0.2832, allocations: 0.5739 MB / 390.1 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.2834, allocations: 170.1 kB / 390.3 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.2845, allocations: 0.5135 MB / 390.8 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2845, allocations: 2.031 kB / 390.8 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.2845, allocations: 0 / 390.8 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2846, allocations: 2.547 kB / 390.8 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002383/0.2869, allocations: 1.696 MB / 392.5 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.287, allocations: 1.156 kB / 392.5 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002233/0.2872, allocations: 48.98 kB / 392.5 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001473/0.2873, allocations: 50.38 kB / 392.6 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.2874, allocations: 5.281 kB / 392.6 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/0.2884, allocations: 1.662 MB / 394.3 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2884, allocations: 6.906 kB / 394.3 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.2898, allocations: 0.7123 MB / 395 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004893/0.2903, allocations: 385.8 kB / 395.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.2904, allocations: 6.75 kB / 395.4 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004192/0.2908, allocations: 42.83 kB / 395.4 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.526e-05/0.2909, allocations: 32.75 kB / 395.4 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.291, allocations: 12.44 kB / 395.5 MB, free: 1.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002443/0.2934, allocations: 2.077 MB / 397.5 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.2934, allocations: 0 / 397.5 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007207/0.2941, allocations: 194 kB / 397.7 MB, free: 0.582 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.0007708/0.2949, allocations: 366.8 kB / 398.1 MB, free: 420 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.296, allocations: 444.9 kB / 398.5 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.296, allocations: 4.938 kB / 398.5 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000473/0.2964, allocations: 273.8 kB / 398.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.2975, allocations: 216.6 kB / 399 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005131/0.3027, allocations: 3.163 MB / 402.2 MB, free: 13.58 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.3037, allocations: 1.362 MB / 403.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000278/0.304, allocations: 79.44 kB / 403.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3041, allocations: 0 / 403.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of Templates: time 0.0333/0.3374, allocations: 24.78 MB / 428.4 MB, free: 3.363 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