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.001396/0.001396, allocations: 92.27 kB / 20.96 MB, free: 3.445 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.001502/0.001502, allocations: 160.9 kB / 24.26 MB, free: 148 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.469/1.469, allocations: 177 MB / 204.5 MB, free: 5.609 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 1.198e-05/1.198e-05, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.571e-05/4.769e-05, allocations: 2.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.01121/0.01126, allocations: 3.714 MB / 275.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006381/0.01764, allocations: 1.943 MB / 277.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000473/0.01811, allocations: 19.88 kB / 277.9 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.02038, allocations: 0.5756 MB / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001519/0.0219, allocations: 409.8 kB / 278.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.0231, allocations: 283.3 kB / 279.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002243/0.02534, allocations: 1.009 MB / 280.1 MB, free: 9.828 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007328/0.02608, allocations: 221 kB / 280.3 MB, free: 9.613 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.02769, allocations: 0.5457 MB / 280.9 MB, free: 9.066 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.02896, allocations: 443 kB / 281.3 MB, free: 8.633 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000246/0.02921, allocations: 79.94 kB / 281.4 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005318/0.02974, allocations: 139.9 kB / 281.5 MB, free: 8.418 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007609/0.0305, allocations: 478.7 kB / 282 MB, free: 7.949 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009585/0.03146, allocations: 394.8 kB / 282.4 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003632/0.03509, allocations: 1.725 MB / 284.1 MB, free: 5.832 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.0351, allocations: 0 / 284.1 MB, free: 5.832 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.0351, allocations: 0 / 284.1 MB, free: 5.832 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.29e-05/0.03515, allocations: 0 / 284.1 MB, free: 5.832 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.006503/0.04166, allocations: 1.788 MB / 285.9 MB, free: 4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.04171, allocations: 11.98 kB / 285.9 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006815/0.04239, allocations: 211.9 kB / 286.1 MB, free: 3.781 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003974/0.04637, allocations: 1.149 MB / 287.3 MB, free: 2.598 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003258/0.04669, allocations: 178 kB / 287.4 MB, free: 2.395 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.0469, allocations: 52.38 kB / 287.5 MB, free: 2.344 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002937/0.04983, allocations: 1.012 MB / 288.5 MB, free: 1.199 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.04986, allocations: 4.172 kB / 288.5 MB, free: 1.195 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.04996, allocations: 24.12 kB / 288.5 MB, free: 1.172 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.138e-05/0.04999, allocations: 12 kB / 288.5 MB, free: 1.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.05168, allocations: 435.7 kB / 289 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1412/0.1929, allocations: 2.542 MB / 291.5 MB, free: 26.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.194, allocations: 391 kB / 291.9 MB, free: 26.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006638/0.1946, allocations: 289.3 kB / 292.2 MB, free: 26.72 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.1947, allocations: 6.766 kB / 292.2 MB, free: 26.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.1947, allocations: 38.88 kB / 292.2 MB, free: 26.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.324e-06/0.1947, allocations: 1.062 kB / 292.2 MB, free: 26.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.002093/0.1968, allocations: 0.7119 MB / 292.9 MB, free: 26.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.548e-05/0.1969, allocations: 262.1 kB / 293.2 MB, free: 26.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003665/0.2005, allocations: 2.215 MB / 295.4 MB, free: 25.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.514e-05/0.2006, allocations: 32.34 kB / 295.4 MB, free: 25.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004825/0.2011, allocations: 0.6592 MB / 296.1 MB, free: 24.97 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.989e-05/0.2012, allocations: 109.3 kB / 296.2 MB, free: 24.9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.2013, allocations: 76.23 kB / 296.3 MB, free: 24.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.421e-05/0.2014, allocations: 326.9 kB / 296.6 MB, free: 24.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003389/0.2017, allocations: 160.5 kB / 296.8 MB, free: 24.49 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/0.2021, allocations: 0.497 MB / 297.2 MB, free: 24.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006628/0.2028, allocations: 398.6 kB / 297.6 MB, free: 23.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2028, allocations: 1.031 kB / 297.6 MB, free: 23.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001472/0.2043, allocations: 0.6611 MB / 298.3 MB, free: 23.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.2043, allocations: 5.844 kB / 298.3 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.2043, allocations: 2.438 kB / 298.3 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003055/0.2046, allocations: 66.62 kB / 298.4 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.205, allocations: 95.78 kB / 298.5 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/0.2064, allocations: 1.633 MB / 300.1 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005365/0.207, allocations: 57.23 kB / 300.2 MB, free: 22.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.207, allocations: 16.73 kB / 300.2 MB, free: 22.04 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.0006293/0.2076, allocations: 484.8 kB / 300.6 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001877/0.2078, allocations: 147.1 kB / 300.8 MB, free: 21.74 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.208, allocations: 159.5 kB / 300.9 MB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.208, allocations: 5.047 kB / 300.9 MB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.208, allocations: 2.875 kB / 301 MB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.208, allocations: 2.156 kB / 301 MB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002533/0.2105, allocations: 1.432 MB / 302.4 MB, free: 21.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.2105, allocations: 4.031 kB / 302.4 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000326/0.2109, allocations: 69.44 kB / 302.5 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001795/0.211, allocations: 62.16 kB / 302.5 MB, free: 21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.2111, allocations: 6.75 kB / 302.5 MB, free: 20.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.2122, allocations: 1.599 MB / 304.1 MB, free: 19.53 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2122, allocations: 0 / 304.1 MB, free: 19.53 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.2136, allocations: 0.8071 MB / 304.9 MB, free: 19.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004606/0.214, allocations: 262 kB / 305.2 MB, free: 18.99 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.2141, allocations: 11.66 kB / 305.2 MB, free: 18.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004462/0.2146, allocations: 42.33 kB / 305.2 MB, free: 18.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.129e-05/0.2147, allocations: 29.06 kB / 305.3 MB, free: 18.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.2147, allocations: 10.69 kB / 305.3 MB, free: 18.97 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001707/0.2164, allocations: 1.586 MB / 306.9 MB, free: 18.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2164, allocations: 4 kB / 306.9 MB, free: 18.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000678/0.2171, allocations: 210.2 kB / 307.1 MB, free: 18.23 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.002203/0.2193, allocations: 497.7 kB / 307.6 MB, free: 18.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009735/0.2203, allocations: 494.1 kB / 308 MB, free: 17.53 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.768e-06/0.2203, allocations: 8.062 kB / 308 MB, free: 17.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00043/0.2207, allocations: 294.4 kB / 308.3 MB, free: 17.22 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008941/0.2216, allocations: 204.2 kB / 308.5 MB, free: 17.03 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.2246, allocations: 2.615 MB / 311.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.2251, allocations: 0.6641 MB / 311.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003966/0.2255, allocations: 211.6 kB / 312 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.2257, allocations: 76.48 kB / 312.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.2257, allocations: 0 / 312.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of Templates: time 0.02193/0.2477, allocations: 14.03 MB / 326.1 MB, free: 15.51 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=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: 4.986172417993657]