Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001302/0.001302, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.00148/0.00148, allocations: 217.5 kB / 24.5 MB, free: 4.133 MB / 14.72 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.516/1.516, allocations: 230.5 MB / 258.1 MB, free: 8.008 MB / 206.1 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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 64.12 kB / 379 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2774, allocations: 53.41 MB / 432.4 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008183/0.2856, allocations: 5.899 MB / 438.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005299/0.2909, allocations: 2.773 MB / 441.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007301/0.2916, allocations: 27.81 kB / 441.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001793/0.2934, allocations: 0.7791 MB / 441.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001441/0.2949, allocations: 0.5633 MB / 442.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.2962, allocations: 0.506 MB / 443 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002209/0.2984, allocations: 1.606 MB / 444.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006896/0.2991, allocations: 407.1 kB / 445 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009347/0.3, allocations: 0.6307 MB / 445.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001035/0.301, allocations: 0.7744 MB / 446.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002047/0.3012, allocations: 132 kB / 446.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004901/0.3017, allocations: 207.9 kB / 446.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007246/0.3025, allocations: 0.6582 MB / 447.4 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009429/0.3034, allocations: 0.9166 MB / 448.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002927/0.3063, allocations: 2.509 MB / 450.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3063, allocations: 3.938 kB / 450.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3063, allocations: 4 kB / 450.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.309e-05/0.3064, allocations: 0 / 450.8 MB, free: 4.289 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005733/0.3121, allocations: 2.577 MB / 453.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.3122, allocations: 8.031 kB / 453.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004594/0.3126, allocations: 231.5 kB / 453.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002917/0.3156, allocations: 1.506 MB / 455.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.3157, allocations: 151.7 kB / 455.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.3158, allocations: 80.38 kB / 455.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001947/0.3178, allocations: 1.115 MB / 456.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.3178, allocations: 3.938 kB / 456.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.982e-05/0.3179, allocations: 40 kB / 456.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.3179, allocations: 23.98 kB / 456.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.3194, allocations: 0.7182 MB / 457.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007645/0.327, allocations: 4.526 MB / 461.8 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.3282, allocations: 0.5226 MB / 462.3 MB, free: 8.426 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007689/0.329, allocations: 358.2 kB / 462.7 MB, free: 8.074 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.712e-05/0.329, allocations: 7.984 kB / 462.7 MB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.131e-05/0.3291, allocations: 42.56 kB / 462.7 MB, free: 8.016 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 3.156e-06/0.3291, allocations: 7.938 kB / 462.7 MB, free: 8.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001971/0.3311, allocations: 0.822 MB / 463.5 MB, free: 7.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002533/0.3313, allocations: 427.2 kB / 464 MB, free: 6.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00403/0.3354, allocations: 2.764 MB / 466.7 MB, free: 3.859 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.3355, allocations: 37.7 kB / 466.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008724/0.3364, allocations: 0.8952 MB / 467.6 MB, free: 2.914 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.3366, allocations: 158.7 kB / 467.8 MB, free: 2.758 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.3368, allocations: 130.2 kB / 467.9 MB, free: 2.625 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.337, allocations: 329.9 kB / 468.3 MB, free: 2.297 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006076/0.3376, allocations: 257.2 kB / 468.5 MB, free: 2.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008542/0.3384, allocations: 0.5285 MB / 469 MB, free: 1.398 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.3396, allocations: 0.6249 MB / 469.7 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3396, allocations: 0 / 469.7 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002016/0.3416, allocations: 0.862 MB / 470.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.3416, allocations: 8 kB / 470.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.3416, allocations: 4 kB / 470.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.799e-05/0.3416, allocations: 8 kB / 470.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006167/0.3423, allocations: 160 kB / 470.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.711e-05/0.3423, allocations: 15.98 kB / 470.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.3435, allocations: 159.3 kB / 470.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.661e-05/0.3435, allocations: 32 kB / 470.9 MB, free: 15.45 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009541/0.3445, allocations: 0.5638 MB / 471.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003282/0.3448, allocations: 186.8 kB / 471.6 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.3463, allocations: 0.703 MB / 472.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3463, allocations: 4 kB / 472.3 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.3463, allocations: 3.984 kB / 472.4 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3463, allocations: 3.938 kB / 472.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004042/0.3503, allocations: 2.097 MB / 474.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.3503, allocations: 4.094 kB / 474.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005168/0.3509, allocations: 111.9 kB / 474.6 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.3509, allocations: 0 / 474.6 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.3509, allocations: 8 kB / 474.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.3509, allocations: 7.938 kB / 474.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3509, allocations: 0 / 474.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002034/0.353, allocations: 1.06 MB / 475.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.354, allocations: 346.6 kB / 476 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000242/0.3543, allocations: 12 kB / 476 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.3553, allocations: 135.8 kB / 476.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003343/0.3556, allocations: 159.7 kB / 476.3 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.3557, allocations: 16 kB / 476.3 MB, free: 9.926 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003079/0.3588, allocations: 1.964 MB / 478.3 MB, free: 7.941 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3588, allocations: 0 / 478.3 MB, free: 7.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00121/0.36, allocations: 315.4 kB / 478.6 MB, free: 7.633 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001957/0.3619, allocations: 490.1 kB / 479 MB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.3633, allocations: 0.5699 MB / 479.6 MB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.3634, allocations: 7.938 kB / 479.6 MB, free: 6.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006612/0.364, allocations: 332 kB / 479.9 MB, free: 6.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/0.3659, allocations: 321.8 kB / 480.3 MB, free: 6.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00746/0.3734, allocations: 3.613 MB / 483.9 MB, free: 2.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001312/0.3747, allocations: 1.433 MB / 485.3 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006302/0.3753, allocations: 111.4 kB / 485.4 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of SimCode: time 2.334e-06/0.3753, allocations: 0 / 485.4 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of Templates: time 0.03856/0.4139, allocations: 23.26 MB / 0.4968 GB, free: 9.668 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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: 10.696548494976014]