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.0009658/0.0009658, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.0009218/0.0009218, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9229/0.9229, allocations: 177.1 MB / 206.1 MB, free: 4.477 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+..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.[0-9,]+..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 1.232e-06/1.232e-06, allocations: 3.938 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.618e-05/1.741e-05, allocations: 2.312 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004061/0.004078, allocations: 3.939 MB / 278.1 MB, free: 480 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.00633, allocations: 2.013 MB / 280.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002438/0.006574, allocations: 19.88 kB / 280.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009257/0.0075, allocations: 0.5716 MB / 280.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000466/0.007966, allocations: 401.9 kB / 281.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003899/0.008355, allocations: 291.3 kB / 281.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007087/0.009064, allocations: 1.005 MB / 282.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.009335, allocations: 221 kB / 282.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003666/0.009702, allocations: 0.5457 MB / 283.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003746/0.01008, allocations: 451 kB / 283.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.59e-05/0.01015, allocations: 80 kB / 283.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.01032, allocations: 135.9 kB / 283.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000253/0.01057, allocations: 486.6 kB / 284.3 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.01083, allocations: 390.8 kB / 284.7 MB, free: 9.895 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007936/0.01163, allocations: 1.078 MB / 285.7 MB, free: 8.812 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.01163, allocations: 0 / 285.7 MB, free: 8.812 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.01163, allocations: 0 / 285.7 MB, free: 8.812 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.866e-06/0.01164, allocations: 0 / 285.7 MB, free: 8.812 MB / 266.7 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.001731/0.01337, allocations: 1.925 MB / 287.7 MB, free: 6.836 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.0134, allocations: 12.03 kB / 287.7 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.01357, allocations: 207.9 kB / 287.9 MB, free: 6.621 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007564/0.01433, allocations: 0.7766 MB / 288.7 MB, free: 5.809 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.01443, allocations: 170.1 kB / 288.8 MB, free: 5.613 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.926e-05/0.01449, allocations: 52.38 kB / 288.9 MB, free: 5.562 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005579/0.01505, allocations: 0.8369 MB / 289.7 MB, free: 4.578 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.01506, allocations: 7.922 kB / 289.7 MB, free: 4.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.0151, allocations: 20 kB / 289.7 MB, free: 4.551 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.01511, allocations: 15.98 kB / 289.8 MB, free: 4.535 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.01531, allocations: 142.8 kB / 289.9 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.01722, allocations: 2.203 MB / 292.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003423/0.01756, allocations: 243.1 kB / 292.3 MB, free: 1.859 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.01779, allocations: 175.6 kB / 292.5 MB, free: 1.684 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.01781, allocations: 8 kB / 292.5 MB, free: 1.676 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.01784, allocations: 45.39 kB / 292.6 MB, free: 1.621 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.793e-06/0.01784, allocations: 0 / 292.6 MB, free: 1.621 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0006579/0.0185, allocations: 441.4 kB / 293 MB, free: 1.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/0.01858, allocations: 261 kB / 293.2 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.01975, allocations: 1.545 MB / 294.8 MB, free: 15.29 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.01977, allocations: 33.7 kB / 294.8 MB, free: 15.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000469/0.02024, allocations: 0.8033 MB / 295.6 MB, free: 14.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.044e-05/0.0203, allocations: 115 kB / 295.7 MB, free: 14.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-05/0.02039, allocations: 83.69 kB / 295.8 MB, free: 14.23 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.0205, allocations: 0.4926 MB / 296.3 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.282e-05/0.02056, allocations: 40.72 kB / 296.4 MB, free: 13.69 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.02077, allocations: 433.1 kB / 296.8 MB, free: 13.14 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.02096, allocations: 220.8 kB / 297 MB, free: 12.88 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.02096, allocations: 4 kB / 297 MB, free: 12.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004566/0.02142, allocations: 419.8 kB / 297.4 MB, free: 12.46 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.02143, allocations: 4 kB / 297.4 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.02144, allocations: 4 kB / 297.4 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001331/0.02157, allocations: 51.88 kB / 297.5 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.02176, allocations: 83.83 kB / 297.5 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009614/0.02272, allocations: 2.079 MB / 299.6 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.0229, allocations: 47.83 kB / 299.7 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.02292, allocations: 12 kB / 299.7 MB, free: 10.07 MB / 282.7 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 (battery.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0001656/0.02309, allocations: 184.4 kB / 299.9 MB, free: 9.875 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.0232, allocations: 147.1 kB / 300 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.0233, allocations: 121.3 kB / 300.1 MB, free: 9.605 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.02331, allocations: 4 kB / 300.1 MB, free: 9.602 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.02331, allocations: 3.984 kB / 300.1 MB, free: 9.598 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.02331, allocations: 0 / 300.1 MB, free: 9.598 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.02441, allocations: 1.11 MB / 301.2 MB, free: 8.438 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.02442, allocations: 0 / 301.2 MB, free: 8.438 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.02457, allocations: 63.95 kB / 301.3 MB, free: 8.375 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.254e-05/0.02466, allocations: 47.66 kB / 301.4 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.02468, allocations: 11.92 kB / 301.4 MB, free: 8.312 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008783/0.02556, allocations: 2.044 MB / 303.4 MB, free: 6.148 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.02556, allocations: 3.938 kB / 303.4 MB, free: 6.145 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004729/0.02604, allocations: 0.5523 MB / 304 MB, free: 5.555 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/0.02631, allocations: 206.9 kB / 304.2 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.757e-05/0.02638, allocations: 12.12 kB / 304.2 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.02658, allocations: 35.97 kB / 304.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.245e-05/0.02663, allocations: 35.94 kB / 304.3 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.02664, allocations: 8 kB / 304.3 MB, free: 5.262 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006176/0.02726, allocations: 0.8646 MB / 305.1 MB, free: 4.398 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02726, allocations: 0 / 305.1 MB, free: 4.398 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004004/0.02766, allocations: 211.6 kB / 305.3 MB, free: 4.191 MB / 282.7 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.0008665/0.02853, allocations: 438.8 kB / 305.8 MB, free: 3.922 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005076/0.02904, allocations: 375.9 kB / 306.1 MB, free: 3.535 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.02904, allocations: 4 kB / 306.1 MB, free: 3.531 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.02923, allocations: 273.3 kB / 306.4 MB, free: 3.242 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.02972, allocations: 199.3 kB / 306.6 MB, free: 3.055 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/0.0318, allocations: 2.107 MB / 308.7 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.03202, allocations: 306.6 kB / 309 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002074/0.03223, allocations: 127.5 kB / 309.1 MB, free: 456 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003595/0.03258, allocations: 290.1 kB / 309.4 MB, free: 164 kB / 282.7 MB Notification: Performance of SimCode: time 5.61e-07/0.03259, allocations: 0 / 309.4 MB, free: 164 kB / 282.7 MB Notification: Performance of Templates: time 0.01854/0.05112, allocations: 15.13 MB / 324.5 MB, free: 1.195 MB / 298.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9767439397983253]