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.0008896/0.0008896, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001023/0.001912, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.000729/0.000729, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009051/0.001634, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 0.9914/0.9914, allocations: 177.4 MB / 189.9 MB, free: 4.828 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.134/1.125, allocations: 53.87 MB / 243.8 MB, free: 14.9 MB / 250.7 MB " [Timeout remaining time 179] 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.[0-9,]+..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.[0-9,]+..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.843e-05/2.038e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.003983/0.004003, allocations: 4.023 MB / 249 MB, free: 9.613 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002646/0.006649, allocations: 2.083 MB / 251.1 MB, free: 7.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002756/0.006925, allocations: 15.88 kB / 251.1 MB, free: 7.504 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000932/0.007857, allocations: 0.6107 MB / 251.7 MB, free: 6.891 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006068/0.008464, allocations: 401.8 kB / 252.1 MB, free: 6.496 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005165/0.00898, allocations: 283.4 kB / 252.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.009982, allocations: 1.005 MB / 253.4 MB, free: 5.211 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003221/0.0103, allocations: 222.9 kB / 253.6 MB, free: 4.984 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007112/0.01102, allocations: 0.65 MB / 254.3 MB, free: 4.336 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004631/0.01148, allocations: 419.1 kB / 254.7 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.506e-05/0.01156, allocations: 83.94 kB / 254.8 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.01177, allocations: 135.9 kB / 254.9 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002316/0.012, allocations: 438.9 kB / 255.3 MB, free: 3.281 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002622/0.01226, allocations: 307.1 kB / 255.6 MB, free: 2.98 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008617/0.01312, allocations: 1.047 MB / 256.7 MB, free: 1.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.692e-05/0.01314, allocations: 0 / 256.7 MB, free: 1.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.01314, allocations: 0 / 256.7 MB, free: 1.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.061e-05/0.01318, allocations: 0 / 256.7 MB, free: 1.93 MB / 250.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.002191/0.01537, allocations: 1.88 MB / 258.6 MB, free: 16 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.01541, allocations: 12.02 kB / 258.6 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.0156, allocations: 136.9 kB / 258.7 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007673/0.01637, allocations: 0.6724 MB / 259.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.01648, allocations: 174.1 kB / 259.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.753e-05/0.01654, allocations: 56.38 kB / 259.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005917/0.01713, allocations: 0.8078 MB / 260.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.01714, allocations: 4.188 kB / 260.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.01718, allocations: 24.12 kB / 260.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.01719, allocations: 12 kB / 260.4 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.01738, allocations: 122.9 kB / 260.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.0195, allocations: 1.621 MB / 262.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004183/0.01992, allocations: 213.5 kB / 262.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.02019, allocations: 168.8 kB / 262.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.02022, allocations: 11.94 kB / 262.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.02025, allocations: 39.06 kB / 262.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.525e-06/0.02025, allocations: 0 / 262.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0006662/0.02092, allocations: 326.9 kB / 262.9 MB, free: 11.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.02095, allocations: 59.41 kB / 263 MB, free: 11.28 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.022, allocations: 1.337 MB / 264.3 MB, free: 9.918 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.02203, allocations: 33.7 kB / 264.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.02223, allocations: 397.5 kB / 264.7 MB, free: 9.484 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/0.0223, allocations: 111 kB / 264.9 MB, free: 9.375 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.538e-05/0.02238, allocations: 74.05 kB / 264.9 MB, free: 9.297 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.287e-05/0.02246, allocations: 325.9 kB / 265.2 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.48e-05/0.02252, allocations: 36.73 kB / 265.3 MB, free: 8.938 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.02273, allocations: 377.3 kB / 265.6 MB, free: 8.465 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.02294, allocations: 190.9 kB / 265.8 MB, free: 8.246 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.02294, allocations: 0 / 265.8 MB, free: 8.246 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004428/0.02339, allocations: 305.7 kB / 266.1 MB, free: 7.938 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.02341, allocations: 8 kB / 266.1 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.02341, allocations: 0 / 266.1 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001658/0.02358, allocations: 44.83 kB / 266.2 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.02388, allocations: 108.6 kB / 266.3 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008702/0.02475, allocations: 1.43 MB / 267.7 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.02494, allocations: 39.77 kB / 267.8 MB, free: 6.223 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.02496, allocations: 15.94 kB / 267.8 MB, free: 6.207 MB / 266.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.0001706/0.02513, allocations: 144.6 kB / 267.9 MB, free: 6.055 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.999e-05/0.02522, allocations: 91.81 kB / 268 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.02532, allocations: 121.3 kB / 268.1 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.02532, allocations: 4 kB / 268.1 MB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.02532, allocations: 0 / 268.1 MB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.02533, allocations: 0 / 268.1 MB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009747/0.0263, allocations: 0.8071 MB / 268.9 MB, free: 4.992 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.02631, allocations: 0 / 268.9 MB, free: 4.992 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002108/0.02652, allocations: 79.88 kB / 269 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002001/0.02672, allocations: 178.9 kB / 269.2 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.806e-05/0.02681, allocations: 32.91 kB / 269.2 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.02683, allocations: 11.98 kB / 269.2 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007097/0.02754, allocations: 1.391 MB / 270.6 MB, free: 3.219 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.02755, allocations: 7.875 kB / 270.6 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003988/0.02795, allocations: 427 kB / 271 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.82e-05/0.02801, allocations: 11.98 kB / 271.1 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.02819, allocations: 27.98 kB / 271.1 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.02825, allocations: 40.17 kB / 271.1 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.02826, allocations: 4 kB / 271.1 MB, free: 2.688 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005683/0.02883, allocations: 0.7252 MB / 271.9 MB, free: 1.957 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02883, allocations: 0 / 271.9 MB, free: 1.957 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004553/0.02929, allocations: 211.6 kB / 272.1 MB, free: 1.75 MB / 266.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.001495/0.03078, allocations: 0.6266 MB / 272.7 MB, free: 1.387 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004141/0.0312, allocations: 295.9 kB / 273 MB, free: 1.086 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.939e-05/0.03123, allocations: 16 kB / 273 MB, free: 1.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001805/0.03141, allocations: 223.2 kB / 273.2 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004796/0.03189, allocations: 257 kB / 273.5 MB, free: 0.582 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005229/0.03712, allocations: 2.081 MB / 275.5 MB, free: 14.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.03735, allocations: 290.6 kB / 275.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002522/0.0376, allocations: 127.6 kB / 275.9 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000355/0.03795, allocations: 253.2 kB / 276.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of SimCode: time 1.403e-06/0.03796, allocations: 0 / 276.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of Templates: time 0.1219/0.1599, allocations: 15.52 MB / 291.7 MB, free: 32.74 MB / 282.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] 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","",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.9990221597254276]