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.0009245/0.0009245, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001691/0.002616, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0009112/0.0009112, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001223/0.002134, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9778/0.9778, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08417/1.062, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.492e-06/1.492e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.147e-05/1.296e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.008039/0.008052, allocations: 4.022 MB / 248.7 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006021/0.01407, allocations: 2.087 MB / 250.8 MB, free: 8.094 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002436/0.01432, allocations: 11.94 kB / 250.8 MB, free: 8.082 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004149/0.01847, allocations: 0.5989 MB / 251.4 MB, free: 7.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006558/0.01912, allocations: 413.7 kB / 251.8 MB, free: 7.074 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005321/0.01965, allocations: 291.3 kB / 252.1 MB, free: 6.789 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009942/0.02065, allocations: 1.002 MB / 253.1 MB, free: 5.785 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003499/0.021, allocations: 238.9 kB / 253.3 MB, free: 5.543 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003777/0.02477, allocations: 0.6461 MB / 254 MB, free: 4.895 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005057/0.02528, allocations: 423 kB / 254.4 MB, free: 4.48 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.0254, allocations: 80 kB / 254.5 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002433/0.02564, allocations: 139.9 kB / 254.6 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003143/0.02596, allocations: 434.8 kB / 255 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003406/0.0263, allocations: 299.1 kB / 255.3 MB, free: 3.547 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004139/0.03044, allocations: 1.043 MB / 256.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.263e-05/0.03045, allocations: 0 / 256.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.03045, allocations: 0 / 256.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.711e-05/0.0305, allocations: 3.938 kB / 256.4 MB, free: 2.496 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.00224/0.03274, allocations: 1.892 MB / 258.3 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.03277, allocations: 8.031 kB / 258.3 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001989/0.03297, allocations: 140.8 kB / 258.4 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003481/0.03645, allocations: 0.6725 MB / 259.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/0.03658, allocations: 174.1 kB / 259.3 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.99e-05/0.03666, allocations: 56.38 kB / 259.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007338/0.0374, allocations: 0.7999 MB / 260.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.03741, allocations: 11.92 kB / 260.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.154e-05/0.03746, allocations: 20 kB / 260.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.03747, allocations: 12 kB / 260.2 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002346/0.0377, allocations: 122.9 kB / 260.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006331/0.04404, allocations: 1.621 MB / 261.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004215/0.04446, allocations: 202.5 kB / 262.1 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002911/0.04475, allocations: 171.2 kB / 262.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.04477, allocations: 8 kB / 262.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.0448, allocations: 42.5 kB / 262.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.0448, allocations: 0 / 262.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007408/0.04555, allocations: 335.4 kB / 262.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.04558, allocations: 55.41 kB / 262.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005536/0.05111, allocations: 1.344 MB / 264 MB, free: 10.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.05115, allocations: 33.7 kB / 264.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002679/0.05142, allocations: 393.5 kB / 264.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.415e-05/0.0515, allocations: 111 kB / 264.6 MB, free: 9.934 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.05162, allocations: 74.05 kB / 264.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003439/0.05196, allocations: 325.9 kB / 265 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.74e-05/0.05206, allocations: 36.73 kB / 265 MB, free: 9.492 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.05231, allocations: 381 kB / 265.4 MB, free: 9.016 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.05257, allocations: 204.4 kB / 265.6 MB, free: 8.785 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.05257, allocations: 0 / 265.6 MB, free: 8.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001876/0.05445, allocations: 305.9 kB / 265.9 MB, free: 8.477 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.05447, allocations: 6.344 kB / 265.9 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.05448, allocations: 4 kB / 265.9 MB, free: 8.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001911/0.05467, allocations: 45.02 kB / 265.9 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/0.05509, allocations: 103.9 kB / 266 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.05628, allocations: 1.449 MB / 267.5 MB, free: 6.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.05657, allocations: 39.77 kB / 267.5 MB, free: 6.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.525e-05/0.0566, allocations: 12 kB / 267.5 MB, free: 6.734 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.0002114/0.05681, allocations: 140.5 kB / 267.7 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.05695, allocations: 87.89 kB / 267.7 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001584/0.05711, allocations: 121.3 kB / 267.9 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.05711, allocations: 0 / 267.9 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.05711, allocations: 0 / 267.9 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.05712, allocations: 8.062 kB / 267.9 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.0585, allocations: 0.7992 MB / 268.7 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.0585, allocations: 0 / 268.7 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/0.05883, allocations: 88.53 kB / 268.7 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/0.05916, allocations: 175 kB / 268.9 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001193/0.05928, allocations: 36.97 kB / 269 MB, free: 5.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.05931, allocations: 4 kB / 269 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009756/0.06028, allocations: 1.399 MB / 270.4 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.06028, allocations: 0 / 270.4 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006063/0.06089, allocations: 417.3 kB / 270.8 MB, free: 3.316 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.06101, allocations: 11.98 kB / 270.8 MB, free: 3.305 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003094/0.06131, allocations: 39.98 kB / 270.8 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.597e-05/0.06139, allocations: 32.17 kB / 270.8 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.06141, allocations: 8 kB / 270.9 MB, free: 3.227 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000971/0.06238, allocations: 0.7252 MB / 271.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.06238, allocations: 0 / 271.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005908/0.06297, allocations: 211.6 kB / 271.8 MB, free: 2.289 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.001415/0.06439, allocations: 0.642 MB / 272.4 MB, free: 1.965 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003724/0.06476, allocations: 309.4 kB / 272.7 MB, free: 1.648 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.952e-05/0.06478, allocations: 20 kB / 272.8 MB, free: 1.629 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.06497, allocations: 223.3 kB / 273 MB, free: 1.395 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008534/0.06582, allocations: 1.463 MB / 274.4 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005032/0.07085, allocations: 2.075 MB / 276.5 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.07105, allocations: 298.7 kB / 276.8 MB, free: 13.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002145/0.07127, allocations: 127.7 kB / 276.9 MB, free: 13.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003653/0.07163, allocations: 261.2 kB / 277.2 MB, free: 12.86 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.07163, allocations: 3.938 kB / 277.2 MB, free: 12.86 MB / 282.7 MB Notification: Performance of Templates: time 0.1128/0.1844, allocations: 15.72 MB / 292.9 MB, free: 29.47 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1629169061779976]