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.001834/0.001833, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.002251/0.002251, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.218/2.218, allocations: 222.9 MB / 241.7 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 39.28 kB / 300.6 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.1731, allocations: 49.47 MB / 350.1 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01337/0.1865, allocations: 5.996 MB / 356.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0068/0.1934, allocations: 2.104 MB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00124/0.1947, allocations: 15.94 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003179/0.198, allocations: 0.5955 MB / 358.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002287/0.2003, allocations: 358.3 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002107/0.2025, allocations: 363 kB / 359.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003081/0.2056, allocations: 1.222 MB / 360.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001342/0.207, allocations: 433.4 kB / 361.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.2082, allocations: 418.4 kB / 361.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001536/0.2098, allocations: 0.5486 MB / 362.1 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003839/0.2102, allocations: 60 kB / 362.1 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007856/0.211, allocations: 116 kB / 362.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008931/0.2119, allocations: 0.5959 MB / 362.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002041/0.214, allocations: 0.8152 MB / 363.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004057/0.218, allocations: 2.187 MB / 365.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.333e-06/0.2181, allocations: 0 / 365.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2181, allocations: 0 / 365.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001187/0.2182, allocations: 0 / 365.8 MB, free: 4.961 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.009637/0.2279, allocations: 2.356 MB / 368.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.668e-05/0.228, allocations: 12.03 kB / 368.2 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.2292, allocations: 210.3 kB / 368.4 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005949/0.2352, allocations: 1.652 MB / 370.1 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004796/0.2357, allocations: 128.7 kB / 370.2 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003029/0.236, allocations: 67.98 kB / 370.3 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3349/0.571, allocations: 0.8193 MB / 371.1 MB, free: 24.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-05/0.5711, allocations: 0.875 kB / 371.1 MB, free: 24.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002579/0.5714, allocations: 28.19 kB / 371.1 MB, free: 24.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.365e-05/0.5715, allocations: 14.94 kB / 371.1 MB, free: 24.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002578/0.574, allocations: 0.5532 MB / 371.7 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01358/0.5877, allocations: 4.01 MB / 375.7 MB, free: 22.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/0.5903, allocations: 0.5316 MB / 376.2 MB, free: 22.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.5918, allocations: 359.7 kB / 376.6 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.5918, allocations: 5.094 kB / 376.6 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.112e-05/0.5919, allocations: 43.47 kB / 376.6 MB, free: 21.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 4.448e-06/0.5919, allocations: 0 / 376.6 MB, free: 21.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0049/0.5968, allocations: 0.943 MB / 377.6 MB, free: 21.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.597, allocations: 271 kB / 377.8 MB, free: 21.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01112/0.6081, allocations: 3.142 MB / 381 MB, free: 20.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001695/0.6084, allocations: 35.98 kB / 381 MB, free: 20.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.6098, allocations: 0.8611 MB / 381.9 MB, free: 19.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000224/0.61, allocations: 122.5 kB / 382 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000351/0.6104, allocations: 96.33 kB / 382.1 MB, free: 19.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.656e-05/0.6105, allocations: 325.2 kB / 382.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009132/0.6114, allocations: 210.2 kB / 382.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.6125, allocations: 394.7 kB / 383 MB, free: 18.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.6144, allocations: 0.5166 MB / 383.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.6144, allocations: 1.547 kB / 383.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.003529/0.6179, allocations: 0.7736 MB / 384.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.53e-05/0.618, allocations: 10.75 kB / 384.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/0.618, allocations: 6.156 kB / 384.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005203/0.6186, allocations: 65.95 kB / 384.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008528/0.6194, allocations: 120.3 kB / 384.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00242/0.6219, allocations: 1.622 MB / 386.1 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.6235, allocations: 71.28 kB / 386.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.967e-05/0.6236, allocations: 22.56 kB / 386.2 MB, free: 16.53 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.002027/0.6257, allocations: 0.6557 MB / 386.9 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009963/0.6267, allocations: 186.7 kB / 387 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001095/0.6278, allocations: 216.3 kB / 387.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.6278, allocations: 3.5 kB / 387.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.6278, allocations: 3.938 kB / 387.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.6279, allocations: 2.594 kB / 387.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007138/0.635, allocations: 2.152 MB / 389.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.6351, allocations: 5.312 kB / 389.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006292/0.6357, allocations: 86.59 kB / 389.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000321/0.6361, allocations: 56 kB / 389.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.162e-05/0.6361, allocations: 7.969 kB / 389.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.638, allocations: 1.582 MB / 391.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.6381, allocations: 5.766 kB / 391.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/0.6415, allocations: 0.9699 MB / 392.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/0.6431, allocations: 440.3 kB / 392.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003487/0.6435, allocations: 8.156 kB / 392.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009039/0.6444, allocations: 62.14 kB / 392.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/0.6446, allocations: 41.08 kB / 392.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.462e-05/0.6447, allocations: 15.59 kB / 392.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.005164/0.6498, allocations: 2.246 MB / 394.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6499, allocations: 0 / 394.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001331/0.6512, allocations: 257.7 kB / 395.2 MB, free: 11.1 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.001292/0.6525, allocations: 485.7 kB / 395.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001356/0.6539, allocations: 0.6115 MB / 396.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.6539, allocations: 3.875 kB / 396.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005902/0.6545, allocations: 363 kB / 396.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/0.6562, allocations: 279 kB / 396.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00742/0.6637, allocations: 4.238 MB / 401.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008636/0.6646, allocations: 1.489 MB / 402.6 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005052/0.6651, allocations: 91.44 kB / 402.7 MB, free: 4.188 MB / 302.1 MB Notification: Performance of SimCode: time 9.41e-07/0.6651, allocations: 0 / 402.7 MB, free: 4.188 MB / 302.1 MB Notification: Performance of Templates: time 0.05051/0.7156, allocations: 29.39 MB / 432.1 MB, free: 6.836 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