Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.002095/0.002095, allocations: 89.53 kB / 20.69 MB, free: 1.023 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.002373/0.002373, allocations: 158.2 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 177 MB / 204.1 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.053e-06/2.053e-06, allocations: 1.188 kB / 325 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.411e-05/2.616e-05, allocations: 2.281 kB / 325 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006244/0.00627, allocations: 3.711 MB / 328.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004308/0.01058, allocations: 1.949 MB / 330.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005175/0.0111, allocations: 13.44 kB / 330.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.01266, allocations: 0.5768 MB / 331.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.01368, allocations: 403 kB / 331.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.01471, allocations: 296.9 kB / 331.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001554/0.01626, allocations: 1.008 MB / 332.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005028/0.01677, allocations: 213.4 kB / 333.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009216/0.01769, allocations: 0.5465 MB / 333.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007411/0.01843, allocations: 446.5 kB / 334.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.01859, allocations: 79.88 kB / 334.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003917/0.01899, allocations: 135.3 kB / 334.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005086/0.0195, allocations: 487.8 kB / 334.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005241/0.02002, allocations: 382.1 kB / 335.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002311/0.02233, allocations: 1.728 MB / 336.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.02234, allocations: 0 / 336.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.02234, allocations: 5.031 kB / 336.9 MB, free: 8.945 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.15e-05/0.02237, allocations: 0 / 336.9 MB, free: 8.945 MB / 302.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.003919/0.02629, allocations: 1.785 MB / 338.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.02633, allocations: 11.98 kB / 338.7 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004545/0.02679, allocations: 171.8 kB / 338.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.02893, allocations: 1.137 MB / 340 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/0.02913, allocations: 174.1 kB / 340.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-05/0.02923, allocations: 52.38 kB / 340.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.03082, allocations: 1.023 MB / 341.3 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.03084, allocations: 192 / 341.3 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-05/0.03091, allocations: 28.06 kB / 341.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.03092, allocations: 12 kB / 341.3 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008586/0.03178, allocations: 431.7 kB / 341.7 MB, free: 4.113 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004782/0.03656, allocations: 2.518 MB / 344.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.03767, allocations: 413.3 kB / 344.6 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007196/0.03839, allocations: 287.3 kB / 344.9 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.03841, allocations: 4 kB / 344.9 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.03846, allocations: 42.56 kB / 345 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.274e-06/0.03846, allocations: 0 / 345 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002145/0.04061, allocations: 0.6976 MB / 345.7 MB, free: 60 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001949/0.0408, allocations: 265 kB / 345.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00344/0.04424, allocations: 2.21 MB / 348.1 MB, free: 13.51 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.54e-05/0.04433, allocations: 33.7 kB / 348.2 MB, free: 13.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006973/0.04502, allocations: 0.6627 MB / 348.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.04514, allocations: 111 kB / 348.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.0453, allocations: 78.06 kB / 349 MB, free: 12.61 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.04545, allocations: 322 kB / 349.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003995/0.04584, allocations: 156.7 kB / 349.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006333/0.04648, allocations: 0.5021 MB / 350 MB, free: 11.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007705/0.04725, allocations: 395.8 kB / 350.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.04725, allocations: 4 kB / 350.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001626/0.04888, allocations: 0.6491 MB / 351 MB, free: 10.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.0489, allocations: 4 kB / 351 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.04891, allocations: 4 kB / 351 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003517/0.04926, allocations: 64.81 kB / 351.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.04969, allocations: 92 kB / 351.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/0.05187, allocations: 1.641 MB / 352.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006739/0.05255, allocations: 55.73 kB / 352.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.05258, allocations: 12.08 kB / 352.9 MB, free: 8.477 MB / 318.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.0008911/0.05347, allocations: 489.5 kB / 353.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002394/0.05371, allocations: 135.1 kB / 353.5 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002532/0.05396, allocations: 161.3 kB / 353.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.05397, allocations: 4 kB / 353.7 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.05397, allocations: 3.984 kB / 353.7 MB, free: 7.688 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.05398, allocations: 4.062 kB / 353.7 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/0.0572, allocations: 1.42 MB / 355.1 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.05721, allocations: 3.938 kB / 355.1 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005296/0.05774, allocations: 71.89 kB / 355.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003003/0.05804, allocations: 56.89 kB / 355.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-05/0.05808, allocations: 11.98 kB / 355.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002376/0.06046, allocations: 1.582 MB / 356.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.06046, allocations: 8.078 kB / 356.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002536/0.063, allocations: 0.7987 MB / 357.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009293/0.06393, allocations: 255 kB / 357.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002311/0.06416, allocations: 8 kB / 357.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000709/0.06487, allocations: 47.95 kB / 357.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.06499, allocations: 35.89 kB / 358 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.06503, allocations: 19.86 kB / 358 MB, free: 3.191 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003723/0.06875, allocations: 1.579 MB / 359.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.06875, allocations: 0 / 359.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001382/0.07013, allocations: 219.5 kB / 359.8 MB, free: 1.398 MB / 318.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.002366/0.0725, allocations: 479.9 kB / 360.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.0742, allocations: 0.4905 MB / 360.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.0742, allocations: 3.938 kB / 360.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007782/0.07498, allocations: 299.1 kB / 361 MB, free: 288 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/0.07678, allocations: 191.6 kB / 361.2 MB, free: 100 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007067/0.08384, allocations: 2.58 MB / 363.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.0852, allocations: 0.6642 MB / 364.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009258/0.08613, allocations: 211.5 kB / 364.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003145/0.08644, allocations: 68.5 kB / 364.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of SimCode: time 1.382e-06/0.08644, allocations: 0 / 364.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of Templates: time 0.03955/0.126, allocations: 13.96 MB / 378.7 MB, free: 14.66 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.065963298082352]