Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 109.5 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 190.5 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 48.06 kB / 370.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3089, allocations: 52.19 MB / 422.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008913/0.3178, allocations: 5.858 MB / 428.5 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005801/0.3236, allocations: 2.602 MB / 431.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008829/0.3245, allocations: 31.75 kB / 431.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.3264, allocations: 0.7695 MB / 431.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001315/0.3277, allocations: 0.5127 MB / 432.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001443/0.3292, allocations: 0.5176 MB / 432.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002378/0.3315, allocations: 1.601 MB / 434.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007079/0.3322, allocations: 395 kB / 434.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008899/0.3331, allocations: 0.6345 MB / 435.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001013/0.3341, allocations: 0.7666 MB / 436.3 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000206/0.3343, allocations: 136 kB / 436.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004559/0.3348, allocations: 203.9 kB / 436.6 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006583/0.3355, allocations: 0.6465 MB / 437.3 MB, free: 12 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009866/0.3364, allocations: 0.9206 MB / 438.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003039/0.3395, allocations: 2.499 MB / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3395, allocations: 0 / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3395, allocations: 0 / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.088e-05/0.3395, allocations: 0 / 440.7 MB, free: 12.58 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.005103/0.3446, allocations: 2.561 MB / 443.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.3447, allocations: 12.03 kB / 443.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001863/0.3449, allocations: 139.5 kB / 443.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003987/0.3453, allocations: 243.4 kB / 443.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002702/0.348, allocations: 1.479 MB / 445.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.3481, allocations: 151.4 kB / 445.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.3482, allocations: 84 kB / 445.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.3501, allocations: 1.1 MB / 446.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.3502, allocations: 0 / 446.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.268e-05/0.3502, allocations: 47.98 kB / 446.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.3503, allocations: 20 kB / 446.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.3517, allocations: 0.7182 MB / 447.2 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007676/0.3594, allocations: 4.526 MB / 451.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.3605, allocations: 0.528 MB / 452.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008051/0.3613, allocations: 362 kB / 452.6 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.686e-05/0.3614, allocations: 4 kB / 452.6 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.398e-05/0.3615, allocations: 46.56 kB / 452.7 MB, free: 216 kB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.525e-06/0.3615, allocations: 0 / 452.7 MB, free: 216 kB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.00211/0.3636, allocations: 0.825 MB / 453.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003326/0.3639, allocations: 423.2 kB / 453.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004109/0.368, allocations: 2.743 MB / 456.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.465e-05/0.3681, allocations: 37.7 kB / 456.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009551/0.369, allocations: 0.8872 MB / 457.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.3692, allocations: 162.6 kB / 457.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002236/0.3695, allocations: 134.2 kB / 457.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3696, allocations: 329.9 kB / 458.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005426/0.3702, allocations: 257.2 kB / 458.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000812/0.371, allocations: 0.5324 MB / 459 MB, free: 9.617 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.3721, allocations: 0.6133 MB / 459.6 MB, free: 8.926 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.3721, allocations: 4 kB / 459.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0018/0.3739, allocations: 0.8619 MB / 460.5 MB, free: 8.051 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.3739, allocations: 8 kB / 460.5 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.3739, allocations: 15.92 kB / 460.5 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.262e-05/0.374, allocations: 8 kB / 460.5 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006087/0.3746, allocations: 167.9 kB / 460.7 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.029e-05/0.3746, allocations: 15.92 kB / 460.7 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.3757, allocations: 159.4 kB / 460.8 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.039e-05/0.3757, allocations: 28 kB / 460.9 MB, free: 7.656 MB / 366.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.0009721/0.3767, allocations: 0.5522 MB / 461.4 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002811/0.377, allocations: 190.8 kB / 461.6 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001418/0.3784, allocations: 0.6883 MB / 462.3 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.3784, allocations: 11.94 kB / 462.3 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3784, allocations: 0 / 462.3 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.3784, allocations: 7.984 kB / 462.3 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003731/0.3822, allocations: 2.085 MB / 464.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3822, allocations: 0 / 464.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004918/0.3827, allocations: 107.9 kB / 464.5 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.776e-06/0.3827, allocations: 4 kB / 464.5 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.973e-05/0.3827, allocations: 8 kB / 464.5 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.3827, allocations: 7.938 kB / 464.5 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3827, allocations: 0 / 464.5 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.3846, allocations: 1.06 MB / 465.6 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008152/0.3854, allocations: 342.6 kB / 465.9 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.3856, allocations: 12 kB / 465.9 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009589/0.3865, allocations: 143.8 kB / 466.1 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003183/0.3868, allocations: 159.6 kB / 466.2 MB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.373e-05/0.3869, allocations: 19.98 kB / 466.2 MB, free: 2.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002699/0.3896, allocations: 1.951 MB / 468.2 MB, free: 192 kB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3896, allocations: 0 / 468.2 MB, free: 192 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009011/0.3905, allocations: 307.5 kB / 468.5 MB, free: 15.88 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.003949/0.3944, allocations: 1.98 MB / 470.5 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.3958, allocations: 0.5625 MB / 471 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.3958, allocations: 0 / 471 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006683/0.3965, allocations: 339.8 kB / 471.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/0.398, allocations: 329 kB / 471.7 MB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02611/0.4241, allocations: 17.22 MB / 488.9 MB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.4254, allocations: 1.429 MB / 490.3 MB, free: 9.785 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000948/0.4263, allocations: 295.1 kB / 490.6 MB, free: 9.492 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009951/0.4273, allocations: 0.6984 MB / 491.3 MB, free: 8.793 MB / 398.1 MB Notification: Performance of SimCode: time 2.014e-06/0.4273, allocations: 4 kB / 491.3 MB, free: 8.789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08999/0.5173, allocations: 39.46 MB / 0.5183 GB, free: 1.594 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/15.22, allocations: 15.56 kB / 0.5184 GB, free: 1.586 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.498714248882607]