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.001348/0.001348, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.001473/0.001473, allocations: 206.8 kB / 24.47 MB, free: 4.023 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.469/1.469, allocations: 230.4 MB / 258.1 MB, free: 8.145 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.002034/0.002034, allocations: 71.83 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3064, allocations: 53.31 MB / 432 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006446/0.3129, allocations: 4.085 MB / 436.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003993/0.3169, allocations: 2.088 MB / 438.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004084/0.3173, allocations: 8 kB / 438.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.3186, allocations: 0.5913 MB / 438.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007742/0.3194, allocations: 394.1 kB / 439.2 MB, free: 212 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007735/0.3201, allocations: 282.2 kB / 439.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001305/0.3215, allocations: 0.9858 MB / 440.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/0.3219, allocations: 228.6 kB / 440.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004469/0.3223, allocations: 390.7 kB / 441.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006183/0.3229, allocations: 0.5061 MB / 441.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.323, allocations: 80 kB / 441.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002622/0.3233, allocations: 144 kB / 441.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003999/0.3237, allocations: 474.6 kB / 442.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006043/0.3243, allocations: 0.6329 MB / 442.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001928/0.3262, allocations: 1.762 MB / 444.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3262, allocations: 0 / 444.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3262, allocations: 0 / 444.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.007e-05/0.3263, allocations: 4 kB / 444.6 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.003492/0.3298, allocations: 1.875 MB / 446.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.3298, allocations: 8.031 kB / 446.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002878/0.3301, allocations: 167.9 kB / 446.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/0.3321, allocations: 1.19 MB / 447.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.3323, allocations: 96.95 kB / 448 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.159e-05/0.3324, allocations: 59.88 kB / 448 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.3336, allocations: 0.6595 MB / 448.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3336, allocations: 0 / 448.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.678e-05/0.3336, allocations: 27.98 kB / 448.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.3337, allocations: 16 kB / 448.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008587/0.3345, allocations: 427.7 kB / 449.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004879/0.3394, allocations: 2.876 MB / 452 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.3404, allocations: 402.5 kB / 452.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006855/0.3411, allocations: 293.2 kB / 452.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.3412, allocations: 4 kB / 452.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.3412, allocations: 38.56 kB / 452.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.445e-06/0.3412, allocations: 3.938 kB / 452.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002037/0.3432, allocations: 0.7722 MB / 453.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001715/0.3434, allocations: 273 kB / 453.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003073/0.3465, allocations: 2.246 MB / 456 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.492e-05/0.3465, allocations: 33.7 kB / 456.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000677/0.3472, allocations: 0.6435 MB / 456.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.3473, allocations: 107.1 kB / 456.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.3475, allocations: 78.03 kB / 456.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.3477, allocations: 329.9 kB / 457.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003762/0.3481, allocations: 160.7 kB / 457.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004837/0.3485, allocations: 296.8 kB / 457.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000753/0.3493, allocations: 404.7 kB / 458.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3493, allocations: 0 / 458.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001568/0.3509, allocations: 0.6451 MB / 458.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.3509, allocations: 11.94 kB / 458.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.3509, allocations: 7.938 kB / 458.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003311/0.3512, allocations: 68.94 kB / 458.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004165/0.3517, allocations: 87.89 kB / 458.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002027/0.3537, allocations: 1.771 MB / 460.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006465/0.3543, allocations: 55.69 kB / 460.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.3544, allocations: 16 kB / 460.7 MB, free: 10 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.0008829/0.3553, allocations: 481.6 kB / 461.2 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/0.3556, allocations: 143.1 kB / 461.3 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002871/0.3559, allocations: 169.6 kB / 461.5 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3559, allocations: 11.98 kB / 461.5 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3559, allocations: 0 / 461.5 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.3559, allocations: 3.984 kB / 461.5 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/0.3592, allocations: 1.654 MB / 463.2 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.3592, allocations: 0 / 463.2 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003879/0.3596, allocations: 76.08 kB / 463.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002218/0.3598, allocations: 60.81 kB / 463.3 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.3598, allocations: 8 kB / 463.3 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001928/0.3618, allocations: 1.721 MB / 465 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.3618, allocations: 7.969 kB / 465 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001913/0.3637, allocations: 0.7982 MB / 465.8 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009776/0.3647, allocations: 340 kB / 466.2 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.3648, allocations: 8 kB / 466.2 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000492/0.3653, allocations: 47.95 kB / 466.2 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.3654, allocations: 31.89 kB / 466.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.3654, allocations: 12 kB / 466.3 MB, free: 4.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002543/0.368, allocations: 1.612 MB / 467.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.368, allocations: 0 / 467.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009305/0.3689, allocations: 203.7 kB / 468.1 MB, free: 2.367 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.001957/0.3708, allocations: 479.6 kB / 468.5 MB, free: 2.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.3723, allocations: 494.5 kB / 469 MB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.3723, allocations: 0 / 469 MB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000647/0.3729, allocations: 302.4 kB / 469.3 MB, free: 1.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.3743, allocations: 219.8 kB / 469.5 MB, free: 1.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005551/0.3799, allocations: 2.672 MB / 472.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/0.3811, allocations: 1.264 MB / 473.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006714/0.3818, allocations: 215.8 kB / 473.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/0.382, allocations: 71.42 kB / 473.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.382, allocations: 0 / 473.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of Templates: time 0.02969/0.4117, allocations: 14.36 MB / 488.1 MB, free: 14.54 MB / 398.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 -s cvode -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: 5.081911145709455]