Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008992/0.0008995, allocations: 94.02 kB / 17.31 MB, free: 6.535 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.0009606/0.0009606, allocations: 175.8 kB / 18.21 MB, free: 5.684 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.276/1.276, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002211/0.0002212, allocations: 16.72 kB / 302.1 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07275/0.07299, allocations: 50.41 MB / 352.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005426/0.07845, allocations: 5.571 MB / 358.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002523/0.08099, allocations: 2.069 MB / 360.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002206/0.08122, allocations: 15.94 kB / 360.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.08232, allocations: 0.5994 MB / 360.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005202/0.08285, allocations: 358.3 kB / 361.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006323/0.0835, allocations: 363.3 kB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.08456, allocations: 1.224 MB / 362.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005282/0.0851, allocations: 421.5 kB / 363.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003528/0.08547, allocations: 394.3 kB / 363.5 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004951/0.08597, allocations: 0.5057 MB / 364 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.27e-05/0.08606, allocations: 48 kB / 364 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.08626, allocations: 104 kB / 364.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003808/0.08665, allocations: 0.5803 MB / 364.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005819/0.08724, allocations: 0.8168 MB / 365.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001499/0.08874, allocations: 2.12 MB / 367.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.08876, allocations: 4 kB / 367.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.08877, allocations: 0 / 367.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.08879, allocations: 0 / 367.7 MB, free: 4.438 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002893/0.09168, allocations: 2.038 MB / 369.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.059e-05/0.09172, allocations: 12.03 kB / 369.7 MB, free: 2.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002632/0.09199, allocations: 214.3 kB / 369.9 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.0941, allocations: 1.652 MB / 371.6 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002516/0.09436, allocations: 140.7 kB / 371.7 MB, free: 248 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.232e-05/0.09447, allocations: 64 kB / 371.8 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1339/0.2283, allocations: 0.8311 MB / 372.6 MB, free: 23.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.2284, allocations: 0 / 372.6 MB, free: 23.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.376e-05/0.2285, allocations: 28.38 kB / 372.6 MB, free: 23.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.2285, allocations: 15.5 kB / 372.6 MB, free: 23.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.2296, allocations: 0.5618 MB / 373.2 MB, free: 23.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005986/0.2356, allocations: 4.05 MB / 377.2 MB, free: 21.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001332/0.237, allocations: 0.5709 MB / 377.8 MB, free: 21.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007442/0.2377, allocations: 376.5 kB / 378.2 MB, free: 21.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.2378, allocations: 3.344 kB / 378.2 MB, free: 21.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.2378, allocations: 39.14 kB / 378.2 MB, free: 21.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.003e-06/0.2378, allocations: 0 / 378.2 MB, free: 21.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002405/0.2402, allocations: 0.9987 MB / 379.2 MB, free: 20.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.2403, allocations: 270.5 kB / 379.5 MB, free: 20.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004327/0.2446, allocations: 3.146 MB / 382.6 MB, free: 19.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.2447, allocations: 37.52 kB / 382.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006221/0.2453, allocations: 0.8576 MB / 383.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.151e-05/0.2454, allocations: 119.4 kB / 383.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.637e-05/0.2455, allocations: 48.56 kB / 383.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.567e-05/0.2455, allocations: 324.1 kB / 384 MB, free: 18.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004831/0.246, allocations: 224.4 kB / 384.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005454/0.2466, allocations: 407.9 kB / 384.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009336/0.2475, allocations: 0.5363 MB / 385.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.2475, allocations: 1.344 kB / 385.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001556/0.2491, allocations: 0.7976 MB / 386 MB, free: 17.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.2491, allocations: 15.44 kB / 386 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2491, allocations: 2.875 kB / 386 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002739/0.2494, allocations: 66.86 kB / 386 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004783/0.2499, allocations: 125.9 kB / 386.2 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.2512, allocations: 1.649 MB / 387.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006353/0.2519, allocations: 78.02 kB / 387.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.2519, allocations: 19.17 kB / 387.9 MB, free: 15.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006952/0.2526, allocations: 0.6628 MB / 388.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/0.2529, allocations: 182.6 kB / 388.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000269/0.2531, allocations: 221.6 kB / 389 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.2531, allocations: 4.656 kB / 389 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2532, allocations: 3.938 kB / 389 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.2532, allocations: 0.875 kB / 389 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003029/0.2562, allocations: 2.186 MB / 391.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2562, allocations: 0 / 391.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003966/0.2566, allocations: 89.02 kB / 391.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.2568, allocations: 65.38 kB / 391.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.2568, allocations: 7.75 kB / 391.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.2579, allocations: 1.597 MB / 392.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.258, allocations: 1.375 kB / 392.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/0.2597, allocations: 1.014 MB / 393.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005481/0.2602, allocations: 443.4 kB / 394.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.2604, allocations: 8.625 kB / 394.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.261, allocations: 72.66 kB / 394.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.259e-05/0.2611, allocations: 40.91 kB / 394.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.2611, allocations: 11.41 kB / 394.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002395/0.2635, allocations: 2.253 MB / 396.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2635, allocations: 0 / 396.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007292/0.2643, allocations: 264.6 kB / 397 MB, free: 9.992 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.0009841/0.2653, allocations: 476.7 kB / 397.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.2664, allocations: 0.6425 MB / 398.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.2664, allocations: 4 kB / 398.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005831/0.267, allocations: 367.1 kB / 398.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.2683, allocations: 275.1 kB / 398.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005264/0.2736, allocations: 4.316 MB / 403.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007995/0.2744, allocations: 1.489 MB / 404.6 MB, free: 2.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.2746, allocations: 95.38 kB / 404.6 MB, free: 2.449 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2747, allocations: 0 / 404.6 MB, free: 2.449 MB / 302.1 MB Notification: Performance of Templates: time 0.03538/0.31, allocations: 29.13 MB / 433.8 MB, free: 5.363 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches