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.002594/0.002594, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 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.00316/0.00316, allocations: 160.8 kB / 24.27 MB, free: 160 kB / 18.57 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.585/1.585, allocations: 177 MB / 204.5 MB, free: 5.605 MB / 186.7 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.345e-06/2.345e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.811e-05/4.046e-05, allocations: 6.312 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.009519/0.009559, allocations: 3.969 MB / 276.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005534/0.01509, allocations: 2.021 MB / 278.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006527/0.01575, allocations: 19.88 kB / 278.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00226/0.01801, allocations: 0.5718 MB / 278.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001397/0.0194, allocations: 409.8 kB / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.0205, allocations: 287.3 kB / 279.4 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001979/0.02247, allocations: 1.001 MB / 280.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006282/0.0231, allocations: 213 kB / 280.6 MB, free: 9.305 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001144/0.02425, allocations: 0.5535 MB / 281.2 MB, free: 8.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.02527, allocations: 467 kB / 281.7 MB, free: 8.293 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002/0.02547, allocations: 80 kB / 281.7 MB, free: 8.215 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004378/0.02591, allocations: 127.9 kB / 281.9 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008253/0.02674, allocations: 494.6 kB / 282.3 MB, free: 7.605 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007422/0.02748, allocations: 382.9 kB / 282.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003165/0.03064, allocations: 1.737 MB / 284.5 MB, free: 5.488 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.03065, allocations: 0 / 284.5 MB, free: 5.488 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.03065, allocations: 0 / 284.5 MB, free: 5.488 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.599e-05/0.03068, allocations: 0 / 284.5 MB, free: 5.488 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.005364/0.03604, allocations: 2.038 MB / 286.5 MB, free: 3.398 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.411e-05/0.03611, allocations: 11.98 kB / 286.5 MB, free: 3.387 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005801/0.03669, allocations: 211.8 kB / 286.7 MB, free: 3.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002624/0.03931, allocations: 0.882 MB / 287.6 MB, free: 2.262 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002601/0.03957, allocations: 174.1 kB / 287.8 MB, free: 2.062 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.03972, allocations: 52.38 kB / 287.8 MB, free: 2.012 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00216/0.04188, allocations: 1.047 MB / 288.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.823e-05/0.0419, allocations: 192 / 288.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.864e-05/0.04199, allocations: 24.12 kB / 288.9 MB, free: 0.793 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.04202, allocations: 15.98 kB / 288.9 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.04326, allocations: 399.7 kB / 289.3 MB, free: 396 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1469/0.1901, allocations: 3.048 MB / 292.3 MB, free: 26.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009454/0.1911, allocations: 379.1 kB / 292.7 MB, free: 26.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006359/0.1917, allocations: 286.5 kB / 293 MB, free: 26.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.236e-05/0.1917, allocations: 7.797 kB / 293 MB, free: 26.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.1918, allocations: 42.25 kB / 293 MB, free: 26.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.575e-06/0.1918, allocations: 1.062 kB / 293 MB, free: 26.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.00185/0.1936, allocations: 0.6411 MB / 293.7 MB, free: 25.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.639e-05/0.1937, allocations: 270.8 kB / 293.9 MB, free: 25.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003452/0.1972, allocations: 1.865 MB / 295.8 MB, free: 24.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.731e-05/0.1972, allocations: 33.05 kB / 295.8 MB, free: 24.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006508/0.1979, allocations: 0.8446 MB / 296.7 MB, free: 24.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.672e-05/0.198, allocations: 123 kB / 296.8 MB, free: 24.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.1981, allocations: 94.92 kB / 296.9 MB, free: 23.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.97e-05/0.1982, allocations: 0.5037 MB / 297.4 MB, free: 23.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000304/0.1985, allocations: 141.8 kB / 297.5 MB, free: 23.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/0.1989, allocations: 0.5334 MB / 298.1 MB, free: 22.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006006/0.1995, allocations: 420.3 kB / 298.5 MB, free: 22.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1995, allocations: 1.062 kB / 298.5 MB, free: 22.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001532/0.2011, allocations: 0.6138 MB / 299.1 MB, free: 22.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.2011, allocations: 7.125 kB / 299.1 MB, free: 22.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.2011, allocations: 2.281 kB / 299.1 MB, free: 22.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003287/0.2014, allocations: 66.69 kB / 299.2 MB, free: 22.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003892/0.2018, allocations: 82.97 kB / 299.3 MB, free: 22.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001576/0.2034, allocations: 2.24 MB / 301.5 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005951/0.204, allocations: 46.19 kB / 301.5 MB, free: 20.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.975e-05/0.204, allocations: 15.23 kB / 301.6 MB, free: 20.22 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 (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.0004257/0.2045, allocations: 267.7 kB / 301.8 MB, free: 20 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003143/0.2048, allocations: 158.7 kB / 302 MB, free: 19.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002588/0.205, allocations: 120.5 kB / 302.1 MB, free: 19.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.205, allocations: 2.688 kB / 302.1 MB, free: 19.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.205, allocations: 1.469 kB / 302.1 MB, free: 19.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.205, allocations: 2.156 kB / 302.1 MB, free: 19.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/0.2083, allocations: 1.747 MB / 303.8 MB, free: 18.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2083, allocations: 0 / 303.8 MB, free: 18.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.2086, allocations: 65.27 kB / 303.9 MB, free: 18.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001673/0.2087, allocations: 66.25 kB / 304 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.2088, allocations: 11.94 kB / 304 MB, free: 18.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.21, allocations: 2.191 MB / 306.2 MB, free: 16.83 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.21, allocations: 3.938 kB / 306.2 MB, free: 16.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.2113, allocations: 0.8135 MB / 307 MB, free: 16.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000682/0.212, allocations: 237.1 kB / 307.2 MB, free: 16.24 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.2122, allocations: 13.12 kB / 307.2 MB, free: 16.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004527/0.2127, allocations: 38.41 kB / 307.3 MB, free: 16.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.2128, allocations: 28.53 kB / 307.3 MB, free: 16.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.634e-05/0.2128, allocations: 12.28 kB / 307.3 MB, free: 16.22 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001651/0.2144, allocations: 1.081 MB / 308.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2144, allocations: 0 / 308.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007732/0.2152, allocations: 213.3 kB / 308.6 MB, free: 15.79 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.00326/0.2185, allocations: 0.4907 MB / 309.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009332/0.2194, allocations: 0.5356 MB / 309.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.2194, allocations: 3.969 kB / 309.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004092/0.2198, allocations: 352.5 kB / 310 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008706/0.2207, allocations: 202.2 kB / 310.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.2233, allocations: 2.214 MB / 312.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.2238, allocations: 0.6172 MB / 313 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003143/0.2241, allocations: 143.6 kB / 313.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.2243, allocations: 68.5 kB / 313.2 MB, free: 11.83 MB / 266.7 MB Notification: Performance of SimCode: time 1.362e-06/0.2243, allocations: 0 / 313.2 MB, free: 11.83 MB / 266.7 MB Notification: Performance of Templates: time 0.0213/0.2456, allocations: 13.97 MB / 327.2 MB, free: 13.99 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 -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","/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.2333088129526]