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.001344/0.001344, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001509/0.001509, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.505/1.505, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001551/0.001551, allocations: 47.94 kB / 378.3 MB, free: 2.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2777, allocations: 53.36 MB / 431.6 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008537/0.2863, allocations: 5.903 MB / 437.5 MB, free: 1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005666/0.2919, allocations: 2.766 MB / 440.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007044/0.2926, allocations: 31.81 kB / 440.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.2945, allocations: 0.7713 MB / 441.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001162/0.2956, allocations: 0.5633 MB / 441.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.2969, allocations: 0.5165 MB / 442.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002003/0.2989, allocations: 1.602 MB / 443.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000677/0.2996, allocations: 407.1 kB / 444.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008045/0.3004, allocations: 0.6384 MB / 444.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.3014, allocations: 0.7627 MB / 445.6 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001952/0.3016, allocations: 139.9 kB / 445.7 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004353/0.302, allocations: 212 kB / 445.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006455/0.3027, allocations: 0.6504 MB / 446.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008902/0.3036, allocations: 0.9282 MB / 447.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002752/0.3063, allocations: 2.498 MB / 450 MB, free: 4.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/0.3063, allocations: 4 kB / 450 MB, free: 4.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3063, allocations: 0 / 450 MB, free: 4.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.968e-05/0.3064, allocations: 4 kB / 450 MB, free: 4.457 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.005378/0.3118, allocations: 2.577 MB / 452.6 MB, free: 1.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3118, allocations: 16.03 kB / 452.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003999/0.3122, allocations: 231.5 kB / 452.8 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002753/0.315, allocations: 1.502 MB / 454.3 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.3151, allocations: 151.6 kB / 454.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.3153, allocations: 87.94 kB / 454.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001991/0.3173, allocations: 1.106 MB / 455.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.3173, allocations: 0 / 455.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-05/0.3174, allocations: 43.98 kB / 455.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.3174, allocations: 20 kB / 455.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001443/0.3188, allocations: 0.7182 MB / 456.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007469/0.3263, allocations: 4.526 MB / 461 MB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.3275, allocations: 0.5245 MB / 461.5 MB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007876/0.3283, allocations: 361.9 kB / 461.8 MB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.961e-05/0.3283, allocations: 8 kB / 461.9 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.302e-05/0.3284, allocations: 42.56 kB / 461.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.264e-06/0.3284, allocations: 0 / 461.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001923/0.3303, allocations: 0.8249 MB / 462.7 MB, free: 7.344 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002456/0.3306, allocations: 427.1 kB / 463.1 MB, free: 6.828 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003925/0.3345, allocations: 2.764 MB / 465.9 MB, free: 4.023 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.713e-05/0.3346, allocations: 41.7 kB / 465.9 MB, free: 3.977 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008628/0.3354, allocations: 0.8952 MB / 466.8 MB, free: 3.074 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.3356, allocations: 162.6 kB / 467 MB, free: 2.914 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.3358, allocations: 126.2 kB / 467.1 MB, free: 2.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.336, allocations: 334 kB / 467.4 MB, free: 2.453 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005605/0.3365, allocations: 253.2 kB / 467.7 MB, free: 2.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008294/0.3374, allocations: 0.5324 MB / 468.2 MB, free: 1.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.3385, allocations: 0.6133 MB / 468.8 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.3385, allocations: 4 kB / 468.8 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001764/0.3402, allocations: 0.8619 MB / 469.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.3403, allocations: 8 kB / 469.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3403, allocations: 4 kB / 469.7 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.3403, allocations: 12 kB / 469.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006225/0.3409, allocations: 159.7 kB / 469.9 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.088e-05/0.3409, allocations: 20.16 kB / 469.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009706/0.3419, allocations: 159.4 kB / 470.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-05/0.342, allocations: 28 kB / 470.1 MB, free: 15.61 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.0008007/0.3428, allocations: 0.5599 MB / 470.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002673/0.3431, allocations: 190.8 kB / 470.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.3445, allocations: 0.7001 MB / 471.5 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/0.3445, allocations: 8 kB / 471.5 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.3445, allocations: 7.922 kB / 471.5 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3445, allocations: 0 / 471.5 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00367/0.3482, allocations: 2.093 MB / 473.6 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3482, allocations: 0 / 473.6 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005072/0.3487, allocations: 115.9 kB / 473.8 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.882e-06/0.3487, allocations: 4 kB / 473.8 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.967e-05/0.3487, allocations: 12 kB / 473.8 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.3488, allocations: 4 kB / 473.8 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3488, allocations: 0 / 473.8 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.3507, allocations: 1.056 MB / 474.8 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008363/0.3515, allocations: 346.6 kB / 475.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.3517, allocations: 16 kB / 475.2 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009967/0.3527, allocations: 135.8 kB / 475.3 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003348/0.353, allocations: 155.7 kB / 475.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/0.3531, allocations: 19.94 kB / 475.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002799/0.3559, allocations: 1.967 MB / 477.5 MB, free: 8.098 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3559, allocations: 0 / 477.5 MB, free: 8.098 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000943/0.3568, allocations: 319.4 kB / 477.8 MB, free: 7.785 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.001895/0.3587, allocations: 489 kB / 478.2 MB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.3601, allocations: 0.5723 MB / 478.8 MB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3601, allocations: 1.188 kB / 478.8 MB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006696/0.3607, allocations: 335.8 kB / 479.1 MB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.3621, allocations: 333.7 kB / 479.5 MB, free: 6.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006133/0.3682, allocations: 3.534 MB / 483 MB, free: 2.688 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001393/0.3696, allocations: 1.444 MB / 484.4 MB, free: 1.211 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008502/0.3704, allocations: 299.1 kB / 484.7 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003151/0.3707, allocations: 107.4 kB / 484.8 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3707, allocations: 0 / 484.8 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of Templates: time 0.04115/0.4119, allocations: 21.82 MB / 0.4948 GB, free: 11.17 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/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: 5.759319509845227]