Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001574/0.001574, allocations: 114 kB / 21.18 MB, free: 0.7422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001924/0.001924, allocations: 214.1 kB / 24.48 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.446/1.446, allocations: 230.4 MB / 258.1 MB, free: 8.148 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 67.83 kB / 378.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.2306, allocations: 53.31 MB / 432 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005864/0.2365, allocations: 4.09 MB / 436.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003333/0.2398, allocations: 2.085 MB / 438.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002487/0.2401, allocations: 8 kB / 438.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.2413, allocations: 0.5953 MB / 438.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007126/0.242, allocations: 394.1 kB / 439.2 MB, free: 216 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007419/0.2427, allocations: 286 kB / 439.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.2439, allocations: 0.9858 MB / 440.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004009/0.2443, allocations: 224.6 kB / 440.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004449/0.2448, allocations: 390.7 kB / 441.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000718/0.2455, allocations: 0.51 MB / 441.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.2456, allocations: 76 kB / 441.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002895/0.2459, allocations: 144 kB / 441.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004449/0.2464, allocations: 470.6 kB / 442.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006097/0.247, allocations: 0.6329 MB / 442.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001943/0.2489, allocations: 1.77 MB / 444.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2489, allocations: 4 kB / 444.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2489, allocations: 0 / 444.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.456e-05/0.2489, allocations: 0 / 444.7 MB, free: 10.73 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.00335/0.2523, allocations: 1.871 MB / 446.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.2523, allocations: 11.97 kB / 446.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002534/0.2526, allocations: 171.9 kB / 446.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/0.2546, allocations: 1.186 MB / 447.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.2547, allocations: 96.95 kB / 448 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/0.2548, allocations: 59.89 kB / 448 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.256, allocations: 0.6634 MB / 448.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.256, allocations: 0 / 448.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.666e-05/0.256, allocations: 24 kB / 448.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.256, allocations: 15.94 kB / 448.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008327/0.2569, allocations: 435.7 kB / 449.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004647/0.2615, allocations: 2.876 MB / 452.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.2625, allocations: 394.5 kB / 452.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006737/0.2632, allocations: 293.2 kB / 452.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.2632, allocations: 4 kB / 452.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.915e-05/0.2633, allocations: 42.56 kB / 452.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.024e-06/0.2633, allocations: 0 / 452.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001974/0.2653, allocations: 0.7722 MB / 453.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/0.2654, allocations: 265 kB / 453.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003/0.2684, allocations: 2.246 MB / 456 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.412e-05/0.2685, allocations: 29.7 kB / 456.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006419/0.2691, allocations: 0.6474 MB / 456.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.2692, allocations: 115.1 kB / 456.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.2694, allocations: 78.03 kB / 456.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2695, allocations: 325.9 kB / 457.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003622/0.2699, allocations: 160.7 kB / 457.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004851/0.2704, allocations: 300.7 kB / 457.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007677/0.2712, allocations: 400.7 kB / 458.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2712, allocations: 0 / 458.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001445/0.2726, allocations: 0.649 MB / 458.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.2726, allocations: 8 kB / 458.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2726, allocations: 0 / 458.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003128/0.2729, allocations: 68.75 kB / 458.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004005/0.2733, allocations: 96 kB / 458.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001991/0.2753, allocations: 1.771 MB / 460.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.2758, allocations: 55.69 kB / 460.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.2759, allocations: 12 kB / 460.7 MB, free: 10.01 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.000707/0.2766, allocations: 493.6 kB / 461.2 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.2768, allocations: 143.1 kB / 461.3 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002199/0.277, allocations: 165.5 kB / 461.5 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.277, allocations: 3.938 kB / 461.5 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.277, allocations: 3.984 kB / 461.5 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006691/0.2777, allocations: 340 kB / 461.9 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.2778, allocations: 4 kB / 461.9 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004845/0.2783, allocations: 47.95 kB / 461.9 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.735e-05/0.2784, allocations: 27.95 kB / 461.9 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001578/0.28, allocations: 0.5795 MB / 462.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001314/0.2813, allocations: 0.8277 MB / 463.3 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003294/0.2816, allocations: 155.9 kB / 463.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002181/0.2838, allocations: 1.608 MB / 465.1 MB, free: 5.57 MB / 366.1 MB Notification: Performance of Backend: time 2.61e-07/0.2838, allocations: 4.094 kB / 465.1 MB, free: 5.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003613/0.2874, allocations: 1.026 MB / 466.1 MB, free: 4.809 MB / 366.1 MB Notification: Performance of SimCode: time 0.004361/0.2918, allocations: 3.124 MB / 469.3 MB, free: 1.625 MB / 366.1 MB Notification: Performance of Templates: time 0.02925/0.321, allocations: 15.26 MB / 484.5 MB, free: 2.48 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.718809188809246]