Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000954/0.000954, allocations: 192.8 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000748/0.0007481, allocations: 98.64 kB / 299.9 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002341/0.0002341, allocations: 8 kB / 360.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2132, allocations: 51.4 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.004451/0.2177, allocations: 5.303 MB / 417.3 MB, free: 20.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002824/0.2206, allocations: 2.546 MB / 419.9 MB, free: 17.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004084/0.221, allocations: 15.94 kB / 419.9 MB, free: 17.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.2222, allocations: 0.5955 MB / 420.5 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006142/0.2228, allocations: 398.2 kB / 420.9 MB, free: 16.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000684/0.2235, allocations: 375.5 kB / 421.3 MB, free: 16.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009013/0.2244, allocations: 1.22 MB / 422.5 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004791/0.2249, allocations: 409.6 kB / 422.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003126/0.2252, allocations: 398.3 kB / 423.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004043/0.2256, allocations: 0.5018 MB / 423.8 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.464e-05/0.2257, allocations: 52 kB / 423.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002092/0.2259, allocations: 99.97 kB / 423.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002872/0.2262, allocations: 0.5803 MB / 424.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004503/0.2267, allocations: 0.8168 MB / 425.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.2279, allocations: 2.472 MB / 427.8 MB, free: 10 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.228, allocations: 0 / 427.8 MB, free: 10 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.228, allocations: 0 / 427.8 MB, free: 10 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.228, allocations: 0 / 427.8 MB, free: 10 MB / 298.7 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.002567/0.2306, allocations: 2.05 MB / 429.8 MB, free: 7.895 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.2306, allocations: 12.03 kB / 429.8 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000231/0.2309, allocations: 210.3 kB / 430.1 MB, free: 7.676 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001867/0.2327, allocations: 1.671 MB / 431.7 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002382/0.233, allocations: 140.7 kB / 431.9 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.591e-05/0.2331, allocations: 60 kB / 431.9 MB, free: 5.723 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.2343, allocations: 0.8375 MB / 432.8 MB, free: 4.832 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2343, allocations: 0 / 432.8 MB, free: 4.832 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.521e-05/0.2344, allocations: 28 kB / 432.8 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.2344, allocations: 12 kB / 432.8 MB, free: 4.793 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009131/0.2353, allocations: 0.5594 MB / 433.4 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004789/0.2401, allocations: 4.044 MB / 437.4 MB, free: 76 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.2415, allocations: 0.5768 MB / 438 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000732/0.2422, allocations: 373.2 kB / 438.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.2422, allocations: 4.281 kB / 438.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.2423, allocations: 42.84 kB / 438.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.875e-06/0.2423, allocations: 0 / 438.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002339/0.2447, allocations: 0.9903 MB / 439.4 MB, free: 14.05 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.2448, allocations: 265 kB / 439.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004345/0.2491, allocations: 3.148 MB / 442.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.945e-05/0.2493, allocations: 29.7 kB / 442.8 MB, free: 10.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008751/0.2502, allocations: 0.8607 MB / 443.7 MB, free: 9.641 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.2503, allocations: 122.3 kB / 443.8 MB, free: 9.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.327e-05/0.2503, allocations: 4 kB / 443.8 MB, free: 9.516 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.2505, allocations: 322 kB / 444.1 MB, free: 9.195 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005099/0.251, allocations: 229 kB / 444.3 MB, free: 8.973 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005919/0.2516, allocations: 394.1 kB / 444.7 MB, free: 8.516 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009698/0.2526, allocations: 0.5438 MB / 445.3 MB, free: 7.922 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.2526, allocations: 4 kB / 445.3 MB, free: 7.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002003/0.2546, allocations: 0.8472 MB / 446.1 MB, free: 7.059 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.2546, allocations: 4 kB / 446.1 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.2546, allocations: 4 kB / 446.1 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003293/0.255, allocations: 68.81 kB / 446.2 MB, free: 6.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.2554, allocations: 124 kB / 446.3 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0018/0.2573, allocations: 1.651 MB / 448 MB, free: 5.074 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008957/0.2582, allocations: 83.41 kB / 448 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.766e-05/0.2582, allocations: 16 kB / 448.1 MB, free: 4.977 MB / 314.7 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.0009857/0.2592, allocations: 0.6654 MB / 448.7 MB, free: 4.301 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002664/0.2595, allocations: 189.6 kB / 448.9 MB, free: 4.113 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000282/0.2598, allocations: 222.6 kB / 449.1 MB, free: 3.895 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2598, allocations: 4 kB / 449.1 MB, free: 3.891 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2598, allocations: 0 / 449.1 MB, free: 3.891 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.2598, allocations: 3.984 kB / 449.1 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003361/0.2632, allocations: 2.189 MB / 451.3 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2632, allocations: 3.938 kB / 451.3 MB, free: 1.621 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004038/0.2636, allocations: 91.92 kB / 451.4 MB, free: 1.531 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002117/0.2638, allocations: 60.89 kB / 451.5 MB, free: 1.469 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.359e-05/0.2639, allocations: 19.98 kB / 451.5 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/0.2656, allocations: 1.588 MB / 453.1 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.2657, allocations: 3.938 kB / 453.1 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002303/0.268, allocations: 1.027 MB / 454.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000776/0.2688, allocations: 446.6 kB / 454.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.2689, allocations: 16 kB / 454.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.2695, allocations: 63.95 kB / 454.6 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.2696, allocations: 35.94 kB / 454.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.2696, allocations: 16 kB / 454.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003101/0.2727, allocations: 2.24 MB / 456.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2727, allocations: 0 / 456.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009487/0.2737, allocations: 247.5 kB / 457.2 MB, free: 11.57 MB / 330.7 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.001133/0.2748, allocations: 0.5346 MB / 457.7 MB, free: 11.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.2763, allocations: 0.6338 MB / 458.3 MB, free: 10.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.2763, allocations: 0 / 458.3 MB, free: 10.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006891/0.277, allocations: 375.2 kB / 458.7 MB, free: 10.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.2785, allocations: 289.7 kB / 459 MB, free: 9.875 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007097/0.2856, allocations: 4.231 MB / 463.2 MB, free: 5.602 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/0.2869, allocations: 1.501 MB / 464.7 MB, free: 4.07 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000946/0.2879, allocations: 299.1 kB / 465 MB, free: 3.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002509/0.2881, allocations: 91.44 kB / 465.1 MB, free: 3.684 MB / 330.7 MB Notification: Performance of SimCode: time 9.02e-07/0.2881, allocations: 0 / 465.1 MB, free: 3.684 MB / 330.7 MB Notification: Performance of Templates: time 0.03469/0.3228, allocations: 17.97 MB / 483.1 MB, free: 1.809 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches