Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 187.5 kB / 24.45 MB, free: 3.867 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 47.92 kB / 371.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2233, allocations: 52.17 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005662/0.229, allocations: 3.659 MB / 427.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003159/0.2321, allocations: 1.784 MB / 429.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000283/0.2324, allocations: 19.88 kB / 429.3 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.2337, allocations: 0.5717 MB / 429.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006426/0.2343, allocations: 354.2 kB / 430.2 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006404/0.235, allocations: 307 kB / 430.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001137/0.2361, allocations: 0.978 MB / 431.5 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003909/0.2365, allocations: 209.1 kB / 431.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004458/0.2369, allocations: 402.6 kB / 432.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006112/0.2376, allocations: 490.2 kB / 432.5 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001285/0.2377, allocations: 83.98 kB / 432.6 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002792/0.238, allocations: 136 kB / 432.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003973/0.2384, allocations: 478.6 kB / 433.2 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004919/0.2389, allocations: 0.4893 MB / 433.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001825/0.2407, allocations: 1.766 MB / 435.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.2407, allocations: 7.984 kB / 435.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2407, allocations: 0 / 435.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.227e-05/0.2407, allocations: 0 / 435.5 MB, free: 2.754 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003129/0.2438, allocations: 1.784 MB / 437.3 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.2439, allocations: 12.03 kB / 437.3 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.2441, allocations: 171.9 kB / 437.4 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.2462, allocations: 1.128 MB / 438.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.2463, allocations: 172.1 kB / 438.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.011e-05/0.2464, allocations: 51.95 kB / 438.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.2478, allocations: 1.023 MB / 439.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.2478, allocations: 0 / 439.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.737e-05/0.2479, allocations: 24 kB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.2479, allocations: 12 kB / 439.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000852/0.2487, allocations: 435.6 kB / 440.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004361/0.2531, allocations: 2.513 MB / 442.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000996/0.2541, allocations: 398.5 kB / 443.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00067/0.2548, allocations: 284.7 kB / 443.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.2548, allocations: 4 kB / 443.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.2548, allocations: 39.06 kB / 443.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.983e-06/0.2548, allocations: 0 / 443.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001899/0.2567, allocations: 0.7004 MB / 444.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/0.2569, allocations: 269 kB / 444.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002927/0.2598, allocations: 2.197 MB / 446.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.767e-05/0.2599, allocations: 37.7 kB / 446.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006352/0.2605, allocations: 0.6509 MB / 447.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.2606, allocations: 107.1 kB / 447.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.2607, allocations: 78.02 kB / 447.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.2609, allocations: 326 kB / 447.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003701/0.2613, allocations: 164.6 kB / 448 MB, free: 5.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005951/0.2619, allocations: 0.4967 MB / 448.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007525/0.2626, allocations: 405.4 kB / 448.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.2626, allocations: 0 / 448.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001413/0.264, allocations: 0.6416 MB / 449.5 MB, free: 4.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.264, allocations: 8 kB / 449.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.264, allocations: 0 / 449.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002902/0.2643, allocations: 68.94 kB / 449.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003951/0.2647, allocations: 99.7 kB / 449.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/0.2666, allocations: 1.629 MB / 451.3 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004653/0.2671, allocations: 55.7 kB / 451.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.2671, allocations: 12 kB / 451.4 MB, free: 2.125 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.0006567/0.2677, allocations: 489.5 kB / 451.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.2679, allocations: 143 kB / 452 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/0.2682, allocations: 157.2 kB / 452.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2682, allocations: 4 kB / 452.2 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2682, allocations: 4.094 kB / 452.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.2682, allocations: 0 / 452.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002865/0.271, allocations: 1.417 MB / 453.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2711, allocations: 0 / 453.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003474/0.2714, allocations: 67.89 kB / 453.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001925/0.2716, allocations: 64.83 kB / 453.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.2716, allocations: 11.98 kB / 453.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001657/0.2733, allocations: 1.591 MB / 455.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2733, allocations: 0 / 455.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.2749, allocations: 0.8036 MB / 456.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006996/0.2756, allocations: 255 kB / 456.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.2757, allocations: 8 kB / 456.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004768/0.2762, allocations: 51.95 kB / 456.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.29e-05/0.2762, allocations: 23.95 kB / 456.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.2763, allocations: 11.98 kB / 456.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002214/0.2785, allocations: 1.575 MB / 458.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2785, allocations: 0 / 458.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007475/0.2792, allocations: 211.6 kB / 458.3 MB, free: 11.06 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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.001914/0.2811, allocations: 0.4956 MB / 458.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.2823, allocations: 494.3 kB / 459.2 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2823, allocations: 0 / 459.2 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005677/0.2828, allocations: 307.1 kB / 459.5 MB, free: 9.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009017/0.2837, allocations: 183.8 kB / 459.7 MB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004301/0.288, allocations: 2.726 MB / 462.4 MB, free: 7.023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007875/0.2888, allocations: 0.6561 MB / 463.1 MB, free: 6.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002329/0.2891, allocations: 75.42 kB / 463.2 MB, free: 6.266 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2891, allocations: 0 / 463.2 MB, free: 6.266 MB / 366.1 MB Notification: Performance of Templates: time 0.03073/0.3198, allocations: 21.13 MB / 484.3 MB, free: 1.16 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.692879396956414]