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.001725/0.001725, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.00208/0.00208, allocations: 214.7 kB / 23.75 MB, free: 4.668 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.485/1.485, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.001698/0.001698, allocations: 47.91 kB / 378.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2888, allocations: 53.36 MB / 431.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005949/0.2947, allocations: 4.081 MB / 435.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003738/0.2985, allocations: 2.097 MB / 437.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003954/0.2989, allocations: 19.88 kB / 437.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001345/0.3002, allocations: 0.5833 MB / 438.4 MB, free: 88 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009543/0.3012, allocations: 398 kB / 438.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007123/0.3019, allocations: 287.3 kB / 439.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00137/0.3033, allocations: 0.9975 MB / 440.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004095/0.3037, allocations: 225 kB / 440.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006435/0.3043, allocations: 394.8 kB / 440.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006521/0.305, allocations: 0.5099 MB / 441.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.3051, allocations: 80 kB / 441.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002565/0.3053, allocations: 139.9 kB / 441.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003988/0.3057, allocations: 478.6 kB / 441.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005993/0.3063, allocations: 0.629 MB / 442.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001974/0.3083, allocations: 1.77 MB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3083, allocations: 0 / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3083, allocations: 0 / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.201e-05/0.3083, allocations: 4 kB / 444.3 MB, free: 10.2 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.003282/0.3116, allocations: 1.8 MB / 446.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3116, allocations: 8.031 kB / 446.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002421/0.3119, allocations: 167.9 kB / 446.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/0.3137, allocations: 1.134 MB / 447.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001581/0.3139, allocations: 170.1 kB / 447.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.3e-05/0.314, allocations: 55.89 kB / 447.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.3151, allocations: 0.6635 MB / 448.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.3151, allocations: 0 / 448.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.985e-05/0.3152, allocations: 24 kB / 448.3 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.3152, allocations: 12 kB / 448.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009438/0.3161, allocations: 435.6 kB / 448.7 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005051/0.3212, allocations: 2.824 MB / 451.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.3222, allocations: 401.8 kB / 451.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007567/0.323, allocations: 294.3 kB / 452.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.323, allocations: 4 kB / 452.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/0.3231, allocations: 34.56 kB / 452.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.733e-06/0.3231, allocations: 3.938 kB / 452.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002015/0.3251, allocations: 0.7008 MB / 453 MB, free: 1.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001798/0.3253, allocations: 273 kB / 453.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003247/0.3285, allocations: 2.246 MB / 455.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.013e-05/0.3286, allocations: 33.7 kB / 455.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009174/0.3295, allocations: 0.6396 MB / 456.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.3296, allocations: 115.1 kB / 456.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.3298, allocations: 74.03 kB / 456.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.33, allocations: 333.9 kB / 456.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004466/0.3304, allocations: 156.7 kB / 456.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000474/0.3309, allocations: 300.6 kB / 457.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007298/0.3316, allocations: 400.6 kB / 457.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3316, allocations: 0 / 457.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00141/0.333, allocations: 0.6451 MB / 458.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.3331, allocations: 8 kB / 458.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.3331, allocations: 16 kB / 458.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003118/0.3334, allocations: 60.81 kB / 458.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.3338, allocations: 83.89 kB / 458.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/0.3361, allocations: 1.675 MB / 460 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005167/0.3366, allocations: 59.64 kB / 460 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.3366, allocations: 12 kB / 460 MB, free: 9.82 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.0007445/0.3374, allocations: 489.5 kB / 460.5 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.3376, allocations: 143.2 kB / 460.7 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/0.3378, allocations: 169.5 kB / 460.8 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3378, allocations: 4 kB / 460.8 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.3378, allocations: 0 / 460.8 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3378, allocations: 0 / 460.8 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00313/0.3409, allocations: 1.629 MB / 462.5 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3409, allocations: 4.062 kB / 462.5 MB, free: 7.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.3413, allocations: 71.88 kB / 462.5 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001867/0.3415, allocations: 56.81 kB / 462.6 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.3415, allocations: 8 kB / 462.6 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00174/0.3432, allocations: 1.632 MB / 464.2 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.3432, allocations: 3.938 kB / 464.2 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.3449, allocations: 0.7983 MB / 465 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006272/0.3455, allocations: 266.8 kB / 465.3 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.3456, allocations: 8 kB / 465.3 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.3461, allocations: 43.95 kB / 465.3 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.04e-05/0.3461, allocations: 31.95 kB / 465.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.3462, allocations: 11.98 kB / 465.4 MB, free: 4.246 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002424/0.3486, allocations: 1.608 MB / 467 MB, free: 2.641 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3486, allocations: 0 / 467 MB, free: 2.641 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008336/0.3494, allocations: 207.7 kB / 467.2 MB, free: 2.438 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.001833/0.3513, allocations: 484.3 kB / 467.7 MB, free: 2.145 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.3526, allocations: 498.5 kB / 468.2 MB, free: 1.645 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3526, allocations: 0 / 468.2 MB, free: 1.645 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005568/0.3531, allocations: 302.9 kB / 468.5 MB, free: 1.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009846/0.3541, allocations: 220.3 kB / 468.7 MB, free: 1.121 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004576/0.3587, allocations: 2.669 MB / 471.3 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.3597, allocations: 1.252 MB / 472.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006347/0.3603, allocations: 227.8 kB / 472.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.3605, allocations: 75.42 kB / 472.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3606, allocations: 0 / 472.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of Templates: time 0.02958/0.3901, allocations: 14.46 MB / 487.3 MB, free: 14.48 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/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: 5.247634636005387]