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.001917/0.001917, allocations: 108.6 kB / 21.19 MB, free: 0.7578 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.002402/0.002402, allocations: 193.1 kB / 24.47 MB, free: 4.152 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.486/1.486, allocations: 225.6 MB / 253.3 MB, free: 13.01 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.001686/0.001686, allocations: 55.92 kB / 371.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2393, allocations: 52.19 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00611/0.2454, allocations: 4.033 MB / 427.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003487/0.2489, allocations: 1.922 MB / 429.8 MB, free: 8.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004094/0.2493, allocations: 19.88 kB / 429.8 MB, free: 8.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.2506, allocations: 0.595 MB / 430.4 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006565/0.2513, allocations: 362.1 kB / 430.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006796/0.252, allocations: 294.7 kB / 431.1 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.2532, allocations: 0.9741 MB / 432.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004109/0.2536, allocations: 225.1 kB / 432.3 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004768/0.2541, allocations: 394.7 kB / 432.7 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006805/0.2548, allocations: 0.5139 MB / 433.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.2549, allocations: 76 kB / 433.2 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002855/0.2552, allocations: 140 kB / 433.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004288/0.2556, allocations: 474.6 kB / 433.8 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000634/0.2562, allocations: 0.6329 MB / 434.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001983/0.2582, allocations: 1.755 MB / 436.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2582, allocations: 0 / 436.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2582, allocations: 4 kB / 436.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.604e-05/0.2582, allocations: 3.984 kB / 436.2 MB, free: 2.262 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.003418/0.2617, allocations: 1.785 MB / 438 MB, free: 444 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2617, allocations: 8.031 kB / 438 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002477/0.2619, allocations: 167.9 kB / 438.2 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.2639, allocations: 1.133 MB / 439.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001688/0.2641, allocations: 166.1 kB / 439.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.994e-05/0.2642, allocations: 51.94 kB / 439.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.2654, allocations: 0.67 MB / 440.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.2654, allocations: 3.938 kB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.893e-05/0.2655, allocations: 24 kB / 440.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.2655, allocations: 12 kB / 440.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000845/0.2663, allocations: 443.6 kB / 440.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004676/0.271, allocations: 2.82 MB / 443.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.272, allocations: 402.5 kB / 443.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006759/0.2727, allocations: 288.7 kB / 444.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.2727, allocations: 4 kB / 444.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.2728, allocations: 43.06 kB / 444.2 MB, free: 10 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.703e-06/0.2728, allocations: 0 / 444.2 MB, free: 10 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001888/0.2747, allocations: 0.6926 MB / 444.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/0.2748, allocations: 269 kB / 445.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00305/0.2779, allocations: 2.222 MB / 447.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.102e-05/0.278, allocations: 37.7 kB / 447.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006324/0.2786, allocations: 0.6434 MB / 448.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.2787, allocations: 115.1 kB / 448.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.2789, allocations: 78.02 kB / 448.3 MB, free: 5.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.279, allocations: 329.8 kB / 448.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003581/0.2794, allocations: 156.7 kB / 448.8 MB, free: 5.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004877/0.2799, allocations: 308.5 kB / 449.1 MB, free: 5.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007551/0.2806, allocations: 397.4 kB / 449.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.2806, allocations: 0 / 449.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001521/0.2821, allocations: 0.6494 MB / 450.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.2822, allocations: 4 kB / 450.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.2822, allocations: 7.938 kB / 450.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000301/0.2825, allocations: 60.81 kB / 450.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000402/0.2829, allocations: 92 kB / 450.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/0.2848, allocations: 1.667 MB / 451.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005448/0.2854, allocations: 51.8 kB / 452 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.2854, allocations: 16 kB / 452 MB, free: 1.926 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.0007543/0.2862, allocations: 489.7 kB / 452.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002373/0.2864, allocations: 143.1 kB / 452.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002385/0.2866, allocations: 161.4 kB / 452.8 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.2866, allocations: 4 kB / 452.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.2866, allocations: 0 / 452.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.2866, allocations: 3.984 kB / 452.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003012/0.2897, allocations: 1.626 MB / 454.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.2897, allocations: 0 / 454.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003493/0.29, allocations: 71.89 kB / 454.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002122/0.2902, allocations: 60.8 kB / 454.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.2903, allocations: 12.06 kB / 454.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.292, allocations: 1.618 MB / 456.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.323e-06/0.292, allocations: 7.938 kB / 456.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.2936, allocations: 0.8078 MB / 457 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006611/0.2943, allocations: 258.9 kB / 457.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.2944, allocations: 8 kB / 457.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004708/0.2949, allocations: 51.95 kB / 457.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/0.2949, allocations: 31.94 kB / 457.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.295, allocations: 8 kB / 457.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002365/0.2973, allocations: 1.596 MB / 458.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2973, allocations: 7.938 kB / 458.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008191/0.2982, allocations: 199.7 kB / 459.1 MB, free: 10.56 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.001784/0.2999, allocations: 469.3 kB / 459.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.3012, allocations: 490 kB / 460.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/0.3012, allocations: 4 kB / 460.1 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000566/0.3017, allocations: 303.3 kB / 460.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.3028, allocations: 229.8 kB / 460.6 MB, free: 9.266 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004624/0.3074, allocations: 2.729 MB / 463.3 MB, free: 6.492 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.3085, allocations: 1.252 MB / 464.6 MB, free: 5.215 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.3088, allocations: 67.44 kB / 464.6 MB, free: 5.148 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3088, allocations: 0 / 464.6 MB, free: 5.148 MB / 366.1 MB Notification: Performance of Templates: time 0.03249/0.3413, allocations: 21.01 MB / 485.6 MB, free: 176 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 [Calling sys.exit(0), Time elapsed: 8.971968210069463]