Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001329/0.001329, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.001481/0.001481, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 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 1.548/1.548, allocations: 230.6 MB / 258.2 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] 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.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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 43.92 kB / 379 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2346, allocations: 53.37 MB / 432.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.00753/0.2421, allocations: 5.203 MB / 437.5 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004641/0.2467, allocations: 2.594 MB / 440.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005371/0.2473, allocations: 31.81 kB / 440.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.2489, allocations: 0.7428 MB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001184/0.2501, allocations: 0.5594 MB / 441.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001177/0.2513, allocations: 0.5206 MB / 442 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002043/0.2533, allocations: 1.602 MB / 443.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006369/0.2539, allocations: 378.2 kB / 444 MB, free: 11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007769/0.2547, allocations: 0.6384 MB / 444.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009545/0.2557, allocations: 0.7119 MB / 445.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002112/0.2559, allocations: 139.9 kB / 445.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004221/0.2563, allocations: 211.9 kB / 445.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005921/0.2569, allocations: 0.6465 MB / 446.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007121/0.2576, allocations: 0.7224 MB / 447 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002545/0.2602, allocations: 2.525 MB / 449.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2602, allocations: 0 / 449.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2602, allocations: 0 / 449.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.735e-05/0.2602, allocations: 0 / 449.5 MB, free: 5.395 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.004865/0.2651, allocations: 2.584 MB / 452.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.2651, allocations: 8.031 kB / 452.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003526/0.2655, allocations: 235.4 kB / 452.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002547/0.268, allocations: 1.495 MB / 453.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.2681, allocations: 151.7 kB / 454 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.2683, allocations: 87.94 kB / 454.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002202/0.2705, allocations: 1.71 MB / 455.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.2705, allocations: 3.938 kB / 455.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.954e-05/0.2706, allocations: 40 kB / 455.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.2706, allocations: 24 kB / 455.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.2721, allocations: 0.7104 MB / 456.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007007/0.2791, allocations: 4.052 MB / 460.6 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.2803, allocations: 0.5105 MB / 461.1 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007708/0.281, allocations: 361.9 kB / 461.5 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.643e-05/0.2811, allocations: 4 kB / 461.5 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.2811, allocations: 46.55 kB / 461.5 MB, free: 8.871 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.384e-06/0.2811, allocations: 0 / 461.5 MB, free: 8.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00199/0.2831, allocations: 0.8248 MB / 462.4 MB, free: 8.039 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002755/0.2834, allocations: 423.2 kB / 462.8 MB, free: 7.527 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00389/0.2873, allocations: 2.727 MB / 465.5 MB, free: 4.754 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.987e-05/0.2874, allocations: 33.7 kB / 465.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009003/0.2883, allocations: 0.9144 MB / 466.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.2884, allocations: 158.7 kB / 466.6 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.2887, allocations: 130.3 kB / 466.7 MB, free: 3.504 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.2888, allocations: 322 kB / 467.1 MB, free: 3.184 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000565/0.2894, allocations: 257.1 kB / 467.3 MB, free: 2.934 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.2904, allocations: 0.8839 MB / 468.2 MB, free: 1.844 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.2916, allocations: 0.621 MB / 468.8 MB, free: 1.145 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2916, allocations: 4 kB / 468.8 MB, free: 1.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00182/0.2934, allocations: 0.8505 MB / 469.7 MB, free: 288 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.2934, allocations: 8 kB / 469.7 MB, free: 280 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.2934, allocations: 8.031 kB / 469.7 MB, free: 272 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.2935, allocations: 8 kB / 469.7 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/0.2941, allocations: 163.7 kB / 469.9 MB, free: 100 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.2941, allocations: 11.94 kB / 469.9 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.2952, allocations: 163.3 kB / 470 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.825e-05/0.2953, allocations: 28 kB / 470.1 MB, free: 15.9 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.0009517/0.2962, allocations: 0.5638 MB / 470.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002973/0.2965, allocations: 186.8 kB / 470.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.298, allocations: 0.6958 MB / 471.5 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.298, allocations: 4 kB / 471.5 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.298, allocations: 0 / 471.5 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.298, allocations: 7.922 kB / 471.5 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003497/0.3015, allocations: 1.791 MB / 473.3 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.3015, allocations: 4 kB / 473.3 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005221/0.3021, allocations: 103.9 kB / 473.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.3021, allocations: 0 / 473.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/0.3021, allocations: 16 kB / 473.4 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3021, allocations: 0 / 473.4 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3021, allocations: 4 kB / 473.4 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002015/0.3041, allocations: 1.052 MB / 474.5 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008896/0.305, allocations: 338.6 kB / 474.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.3052, allocations: 16 kB / 474.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.3062, allocations: 135.8 kB / 475 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003986/0.3066, allocations: 151.7 kB / 475.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.989e-05/0.3067, allocations: 20 kB / 475.1 MB, free: 10.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00274/0.3094, allocations: 1.923 MB / 477 MB, free: 8.781 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3094, allocations: 0 / 477 MB, free: 8.781 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009043/0.3103, allocations: 323.3 kB / 477.4 MB, free: 8.465 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.001942/0.3123, allocations: 0.4984 MB / 477.9 MB, free: 8.176 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.3135, allocations: 0.5843 MB / 478.4 MB, free: 7.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3136, allocations: 0 / 478.4 MB, free: 7.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007346/0.3143, allocations: 336.6 kB / 478.8 MB, free: 7.262 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.3155, allocations: 286.4 kB / 479 MB, free: 6.984 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006217/0.3218, allocations: 3.594 MB / 482.6 MB, free: 3.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.3228, allocations: 0.8454 MB / 483.5 MB, free: 2.449 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003992/0.3232, allocations: 115.4 kB / 483.6 MB, free: 2.336 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3232, allocations: 0 / 483.6 MB, free: 2.336 MB / 382.1 MB Notification: Performance of Templates: time 0.03649/0.3597, allocations: 23.35 MB / 0.4951 GB, free: 11.06 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 9.94894464686513]