Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001834/0.001834, allocations: 106.5 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002291/0.002291, allocations: 216.6 kB / 24.49 MB, free: 3.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.523/1.523, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 52.05 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.226, allocations: 53.37 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005555/0.2316, allocations: 3.704 MB / 436 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003195/0.2348, allocations: 1.948 MB / 438 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.235, allocations: 15.94 kB / 438 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.2362, allocations: 0.5677 MB / 438.6 MB, free: 460 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006605/0.2369, allocations: 398.1 kB / 439 MB, free: 60 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005885/0.2375, allocations: 282.7 kB / 439.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.2385, allocations: 0.9859 MB / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003888/0.2389, allocations: 225 kB / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003922/0.2393, allocations: 398.6 kB / 440.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005688/0.2399, allocations: 0.5139 MB / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.24, allocations: 80 kB / 441.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002381/0.2402, allocations: 136 kB / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003801/0.2406, allocations: 482.6 kB / 442 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004638/0.2411, allocations: 489.1 kB / 442.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001735/0.2428, allocations: 1.786 MB / 444.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2428, allocations: 4 kB / 444.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.051e-06/0.2428, allocations: 0 / 444.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.2428, allocations: 3.938 kB / 444.3 MB, free: 10.7 MB / 350.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.003003/0.2458, allocations: 1.795 MB / 446.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2459, allocations: 12.03 kB / 446.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002402/0.2461, allocations: 171.8 kB / 446.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.248, allocations: 1.13 MB / 447.4 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.2482, allocations: 178.1 kB / 447.6 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.694e-05/0.2483, allocations: 55.89 kB / 447.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.2496, allocations: 1.011 MB / 448.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.2496, allocations: 0 / 448.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.93e-05/0.2497, allocations: 24 kB / 448.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.2497, allocations: 12 kB / 448.7 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008443/0.2505, allocations: 439.7 kB / 449.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004132/0.2547, allocations: 2.514 MB / 451.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000977/0.2556, allocations: 399.3 kB / 452 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006559/0.2563, allocations: 288.7 kB / 452.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.2563, allocations: 4 kB / 452.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.2564, allocations: 38.56 kB / 452.3 MB, free: 2.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 3.447e-06/0.2564, allocations: 3.984 kB / 452.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001858/0.2582, allocations: 0.7047 MB / 453 MB, free: 1.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/0.2584, allocations: 265 kB / 453.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002801/0.2612, allocations: 2.218 MB / 455.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.2612, allocations: 29.7 kB / 455.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006019/0.2618, allocations: 0.6588 MB / 456.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.755e-05/0.2619, allocations: 115 kB / 456.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.262, allocations: 78.06 kB / 456.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.2622, allocations: 322 kB / 456.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/0.2625, allocations: 160.6 kB / 456.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005746/0.2631, allocations: 0.4944 MB / 457.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007473/0.2639, allocations: 396.7 kB / 457.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.2639, allocations: 3.938 kB / 457.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001371/0.2652, allocations: 0.6489 MB / 458.4 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.2653, allocations: 11.98 kB / 458.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2653, allocations: 0 / 458.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002831/0.2656, allocations: 72.94 kB / 458.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.2659, allocations: 91.77 kB / 458.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001757/0.2677, allocations: 1.629 MB / 460.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004172/0.2681, allocations: 55.69 kB / 460.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.2681, allocations: 12 kB / 460.3 MB, free: 10.03 MB / 366.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.0005635/0.2687, allocations: 491.8 kB / 460.7 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.2689, allocations: 135.1 kB / 460.9 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002165/0.2691, allocations: 165.4 kB / 461 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.2691, allocations: 4 kB / 461 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2691, allocations: 0 / 461 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006509/0.2698, allocations: 266.8 kB / 461.3 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.2699, allocations: 4 kB / 461.3 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004951/0.2704, allocations: 47.94 kB / 461.3 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.488e-05/0.2705, allocations: 35.95 kB / 461.4 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001537/0.272, allocations: 0.5718 MB / 462 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00132/0.2733, allocations: 0.8277 MB / 462.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003329/0.2737, allocations: 159.9 kB / 462.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00208/0.2757, allocations: 1.591 MB / 464.5 MB, free: 5.707 MB / 366.1 MB Notification: Performance of Backend: time 1.8e-07/0.2757, allocations: 0 / 464.5 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003821/0.2796, allocations: 1.062 MB / 465.6 MB, free: 4.938 MB / 366.1 MB Notification: Performance of SimCode: time 0.00419/0.2838, allocations: 3.112 MB / 468.7 MB, free: 1.773 MB / 366.1 MB Notification: Performance of Templates: time 0.02812/0.3119, allocations: 16.56 MB / 485.3 MB, free: 1.375 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.824057272002392]