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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 103.3 kB / 19.61 MB, free: 2.707 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001854/0.001854, allocations: 199.5 kB / 22.76 MB, free: 5.477 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 225.6 MB / 251.4 MB, free: 13.43 MB / 206.1 MB [Timeout remaining time 88] 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.001538/0.001538, allocations: 51.92 kB / 369.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2693, allocations: 52.14 MB / 421.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006019/0.2753, allocations: 4.01 MB / 425.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003405/0.2787, allocations: 1.914 MB / 427.2 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003795/0.2791, allocations: 11.94 kB / 427.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.2805, allocations: 0.5872 MB / 427.8 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007297/0.2812, allocations: 358.2 kB / 428.2 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000693/0.2819, allocations: 282.7 kB / 428.4 MB, free: 8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001369/0.2833, allocations: 0.9897 MB / 429.4 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004462/0.2837, allocations: 248.6 kB / 429.7 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005127/0.2842, allocations: 386.8 kB / 430 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006579/0.2849, allocations: 0.5099 MB / 430.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.285, allocations: 80 kB / 430.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002849/0.2853, allocations: 136 kB / 430.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004065/0.2857, allocations: 474.7 kB / 431.2 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006197/0.2863, allocations: 0.629 MB / 431.9 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001897/0.2882, allocations: 1.762 MB / 433.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2882, allocations: 0 / 433.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2882, allocations: 0 / 433.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.2882, allocations: 3.938 kB / 433.6 MB, free: 2.781 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.003067/0.2913, allocations: 1.864 MB / 435.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.2913, allocations: 8.031 kB / 435.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002698/0.2916, allocations: 167.9 kB / 435.7 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.2935, allocations: 1.186 MB / 436.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.2937, allocations: 101 kB / 436.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.623e-05/0.2938, allocations: 55.92 kB / 437 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.295, allocations: 0.6595 MB / 437.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.295, allocations: 4 kB / 437.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.51e-05/0.2951, allocations: 20 kB / 437.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.2951, allocations: 12 kB / 437.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008437/0.2959, allocations: 435.7 kB / 438.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005065/0.301, allocations: 2.876 MB / 441 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.302, allocations: 406.5 kB / 441.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006764/0.3027, allocations: 288.7 kB / 441.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.3027, allocations: 0 / 441.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.3028, allocations: 43.06 kB / 441.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.154e-06/0.3028, allocations: 0 / 441.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001991/0.3047, allocations: 0.7679 MB / 442.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001994/0.3049, allocations: 269 kB / 442.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003062/0.308, allocations: 2.226 MB / 445 MB, free: 7.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.045e-05/0.3081, allocations: 33.7 kB / 445 MB, free: 7.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006209/0.3087, allocations: 0.6395 MB / 445.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.3088, allocations: 123 kB / 445.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.309, allocations: 74.03 kB / 445.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.3091, allocations: 329.9 kB / 446.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.3095, allocations: 152.7 kB / 446.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004813/0.31, allocations: 304.5 kB / 446.6 MB, free: 5.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007753/0.3107, allocations: 405.4 kB / 447 MB, free: 4.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3107, allocations: 0 / 447 MB, free: 4.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001496/0.3122, allocations: 0.6416 MB / 447.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.3123, allocations: 11.44 kB / 447.6 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.3123, allocations: 7.938 kB / 447.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/0.3126, allocations: 64.81 kB / 447.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003828/0.313, allocations: 92 kB / 447.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002008/0.315, allocations: 1.775 MB / 449.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005336/0.3155, allocations: 55.66 kB / 449.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.722e-05/0.3155, allocations: 12 kB / 449.7 MB, free: 2.098 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.0007073/0.3162, allocations: 485.7 kB / 450.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002248/0.3165, allocations: 143 kB / 450.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002372/0.3167, allocations: 169.4 kB / 450.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3167, allocations: 4 kB / 450.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3167, allocations: 3.984 kB / 450.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.3167, allocations: 3.984 kB / 450.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002957/0.3197, allocations: 1.655 MB / 452.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.3197, allocations: 0 / 452.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003422/0.32, allocations: 67.89 kB / 452.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001992/0.3202, allocations: 56.89 kB / 452.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.987e-05/0.3203, allocations: 11.98 kB / 452.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002098/0.3224, allocations: 1.72 MB / 454 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.3224, allocations: 3.938 kB / 454 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.3242, allocations: 0.8111 MB / 454.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006384/0.3248, allocations: 344 kB / 455.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.3249, allocations: 8 kB / 455.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004919/0.3254, allocations: 47.95 kB / 455.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.3255, allocations: 31.89 kB / 455.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.3256, allocations: 12 kB / 455.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002289/0.3278, allocations: 1.592 MB / 456.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3278, allocations: 0 / 456.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008036/0.3286, allocations: 211.7 kB / 457 MB, free: 10.47 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.001752/0.3304, allocations: 462.4 kB / 457.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.3316, allocations: 0.4942 MB / 457.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3316, allocations: 0 / 457.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005475/0.3321, allocations: 299.1 kB / 458.2 MB, free: 9.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.3331, allocations: 215.2 kB / 458.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004596/0.3377, allocations: 2.731 MB / 461.2 MB, free: 6.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/0.3388, allocations: 1.249 MB / 462.4 MB, free: 5.121 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002987/0.3391, allocations: 71.42 kB / 462.5 MB, free: 5.051 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3391, allocations: 0 / 462.5 MB, free: 5.051 MB / 366.1 MB Notification: Performance of Templates: time 0.03368/0.3728, allocations: 21.01 MB / 483.5 MB, free: 80 kB / 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