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.00131/0.00131, allocations: 112.9 kB / 19.17 MB, free: 3.871 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.001349/0.001349, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.465/1.465, allocations: 230.5 MB / 255.4 MB, free: 15.01 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.0019/0.0019, allocations: 71.81 kB / 374.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1173, allocations: 53.32 MB / 428 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005827/0.1232, allocations: 4.049 MB / 432.1 MB, free: 284 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2309/0.354, allocations: 2.07 MB / 434.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00033/0.3543, allocations: 14.09 kB / 434.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.3556, allocations: 0.59 MB / 434.8 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006559/0.3563, allocations: 398.6 kB / 435.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006355/0.3569, allocations: 286.1 kB / 435.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.358, allocations: 0.9768 MB / 436.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004046/0.3584, allocations: 260.9 kB / 436.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004495/0.3588, allocations: 393 kB / 437.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000654/0.3595, allocations: 0.5065 MB / 437.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.3596, allocations: 79.75 kB / 437.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003197/0.3599, allocations: 137.2 kB / 437.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004292/0.3604, allocations: 475.3 kB / 438.2 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005528/0.3609, allocations: 0.6339 MB / 438.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002062/0.363, allocations: 1.769 MB / 440.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.363, allocations: 3.938 kB / 440.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.363, allocations: 0 / 440.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.774e-05/0.363, allocations: 0 / 440.6 MB, free: 6.402 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.002996/0.366, allocations: 1.88 MB / 442.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.366, allocations: 9.969 kB / 442.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002546/0.3663, allocations: 171.9 kB / 442.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.3682, allocations: 1.189 MB / 443.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.3683, allocations: 94.44 kB / 444 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.869e-05/0.3684, allocations: 55.42 kB / 444 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.3695, allocations: 0.6625 MB / 444.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.3695, allocations: 0 / 444.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.229e-05/0.3696, allocations: 22.78 kB / 444.7 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.3696, allocations: 11.78 kB / 444.7 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007819/0.3704, allocations: 436 kB / 445.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00431/0.3747, allocations: 2.864 MB / 448 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009362/0.3756, allocations: 400.9 kB / 448.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006425/0.3763, allocations: 290.4 kB / 448.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.3763, allocations: 3.062 kB / 448.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.3763, allocations: 42.47 kB / 448.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.344e-06/0.3763, allocations: 0 / 448.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001905/0.3782, allocations: 0.7809 MB / 449.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.3783, allocations: 269.4 kB / 449.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003159/0.3815, allocations: 2.243 MB / 452 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.336e-05/0.3815, allocations: 32.45 kB / 452.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004273/0.3819, allocations: 0.642 MB / 452.7 MB, free: 104 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.397e-05/0.382, allocations: 118.9 kB / 452.8 MB, free: 8 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.3822, allocations: 76.95 kB / 452.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3823, allocations: 328.7 kB / 453.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.3827, allocations: 156.1 kB / 453.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.3832, allocations: 295 kB / 453.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007521/0.3839, allocations: 400.7 kB / 454 MB, free: 15.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3839, allocations: 0 / 454 MB, free: 15.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001505/0.3854, allocations: 0.6436 MB / 454.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3855, allocations: 10.16 kB / 454.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.3855, allocations: 2.188 kB / 454.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003186/0.3858, allocations: 71.47 kB / 454.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003784/0.3862, allocations: 94.09 kB / 454.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00193/0.3881, allocations: 1.764 MB / 456.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006444/0.3887, allocations: 56.73 kB / 456.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.3888, allocations: 15.75 kB / 456.7 MB, free: 13.19 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.0008932/0.3897, allocations: 488.8 kB / 457.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002759/0.3899, allocations: 142.2 kB / 457.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002817/0.3902, allocations: 172.6 kB / 457.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.331e-06/0.3902, allocations: 3.953 kB / 457.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3902, allocations: 0 / 457.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3902, allocations: 2.844 kB / 457.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002971/0.3932, allocations: 1.657 MB / 459.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.3932, allocations: 2.688 kB / 459.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003255/0.3936, allocations: 66.5 kB / 459.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002/0.3938, allocations: 57.77 kB / 459.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.3938, allocations: 15.27 kB / 459.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001693/0.3955, allocations: 1.724 MB / 461 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3955, allocations: 5.375 kB / 461 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.3971, allocations: 0.8038 MB / 461.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005896/0.3977, allocations: 339 kB / 462.2 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.3979, allocations: 11.34 kB / 462.2 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000488/0.3984, allocations: 47.86 kB / 462.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.3985, allocations: 24.44 kB / 462.2 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/0.3985, allocations: 15.92 kB / 462.2 MB, free: 9.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002534/0.401, allocations: 1.603 MB / 463.9 MB, free: 8.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.401, allocations: 0 / 463.9 MB, free: 8.402 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009355/0.402, allocations: 208.3 kB / 464.1 MB, free: 8.363 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.001743/0.4037, allocations: 481.8 kB / 464.5 MB, free: 8.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.4049, allocations: 0.4888 MB / 465 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.4049, allocations: 1.219 kB / 465 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000556/0.4054, allocations: 302.5 kB / 465.3 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.4065, allocations: 204.2 kB / 465.5 MB, free: 7.578 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005001/0.4115, allocations: 2.723 MB / 468.2 MB, free: 6.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001167/0.4127, allocations: 1.255 MB / 469.5 MB, free: 5.098 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000447/0.4131, allocations: 72.45 kB / 469.6 MB, free: 5.086 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4131, allocations: 1.375 kB / 469.6 MB, free: 5.086 MB / 366.1 MB Notification: Performance of Templates: time 0.03434/0.4475, allocations: 21.11 MB / 490.7 MB, free: 1.035 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: 9.306677561020479]