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.001398/0.001398, 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.001539/0.001539, 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.529/1.529, allocations: 230.6 MB / 257.5 MB, free: 8.039 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 43.92 kB / 377.8 MB, free: 3.254 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2806, allocations: 53.36 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.0083/0.2889, allocations: 5.913 MB / 437 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005031/0.294, allocations: 2.762 MB / 439.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006842/0.2947, allocations: 27.81 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001663/0.2963, allocations: 0.7705 MB / 440.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001194/0.2975, allocations: 0.5633 MB / 441.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.2987, allocations: 0.5209 MB / 441.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001859/0.3005, allocations: 1.598 MB / 443.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006399/0.3012, allocations: 411 kB / 443.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007347/0.3019, allocations: 0.6306 MB / 444.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009093/0.3028, allocations: 0.7744 MB / 445.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.303, allocations: 132 kB / 445.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003862/0.3034, allocations: 215.9 kB / 445.4 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005753/0.3039, allocations: 0.6427 MB / 446.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000853/0.3048, allocations: 0.9321 MB / 447 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0027/0.3075, allocations: 2.502 MB / 449.5 MB, free: 4.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.3075, allocations: 4 kB / 449.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3075, allocations: 3.938 kB / 449.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.476e-05/0.3075, allocations: 0 / 449.5 MB, free: 4.406 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.005099/0.3126, allocations: 2.573 MB / 452.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3127, allocations: 8.031 kB / 452.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001734/0.3129, allocations: 139.5 kB / 452.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003474/0.3132, allocations: 235.5 kB / 452.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.3158, allocations: 1.506 MB / 454 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.316, allocations: 147.4 kB / 454.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.3161, allocations: 84 kB / 454.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00189/0.318, allocations: 1.109 MB / 455.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.318, allocations: 7.938 kB / 455.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.123e-05/0.3181, allocations: 36 kB / 455.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.3181, allocations: 24 kB / 455.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.3195, allocations: 0.7143 MB / 456.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007363/0.3269, allocations: 4.538 MB / 460.6 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.3281, allocations: 0.5208 MB / 461.1 MB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007866/0.3289, allocations: 353.9 kB / 461.5 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.46e-05/0.329, allocations: 12 kB / 461.5 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/0.329, allocations: 42.55 kB / 461.5 MB, free: 7.984 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.875e-06/0.329, allocations: 7.938 kB / 461.5 MB, free: 7.977 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001896/0.3309, allocations: 0.821 MB / 462.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002595/0.3312, allocations: 431.2 kB / 462.8 MB, free: 6.629 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003923/0.3351, allocations: 2.764 MB / 465.5 MB, free: 3.824 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.26e-05/0.3352, allocations: 37.7 kB / 465.6 MB, free: 3.781 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009038/0.3361, allocations: 0.8914 MB / 466.5 MB, free: 2.883 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.3363, allocations: 166.6 kB / 466.6 MB, free: 2.719 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002857/0.3366, allocations: 126.2 kB / 466.8 MB, free: 2.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.3367, allocations: 330 kB / 467.1 MB, free: 2.262 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005737/0.3373, allocations: 253.1 kB / 467.3 MB, free: 2.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008226/0.3381, allocations: 0.5324 MB / 467.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.3392, allocations: 0.621 MB / 468.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-06/0.3392, allocations: 4 kB / 468.5 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001802/0.3411, allocations: 0.8578 MB / 469.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.3411, allocations: 10.19 kB / 469.4 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.3411, allocations: 8.5 kB / 469.4 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.445e-05/0.3411, allocations: 12 kB / 469.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006137/0.3417, allocations: 163.7 kB / 469.5 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.068e-05/0.3418, allocations: 8 kB / 469.5 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.3428, allocations: 159.4 kB / 469.7 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.212e-05/0.3428, allocations: 31.94 kB / 469.7 MB, free: 15.41 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.0008954/0.3437, allocations: 0.5599 MB / 470.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003513/0.3441, allocations: 186.8 kB / 470.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.3456, allocations: 0.7118 MB / 471.2 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3456, allocations: 7.938 kB / 471.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3456, allocations: 0 / 471.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.3456, allocations: 3.984 kB / 471.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003804/0.3494, allocations: 2.093 MB / 473.3 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.3495, allocations: 3.984 kB / 473.3 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005002/0.35, allocations: 103.9 kB / 473.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.056e-05/0.35, allocations: 4 kB / 473.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/0.35, allocations: 12.09 kB / 473.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.926e-06/0.35, allocations: 15.92 kB / 473.4 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.35, allocations: 0 / 473.4 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001875/0.3519, allocations: 1.056 MB / 474.5 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007807/0.3527, allocations: 338.6 kB / 474.8 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/0.3529, allocations: 16 kB / 474.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.3541, allocations: 139.8 kB / 475 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/0.3545, allocations: 155.7 kB / 475.1 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.3545, allocations: 20 kB / 475.1 MB, free: 9.887 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003207/0.3577, allocations: 1.964 MB / 477.1 MB, free: 7.902 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3577, allocations: 0 / 477.1 MB, free: 7.902 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00108/0.3588, allocations: 315.3 kB / 477.4 MB, free: 7.594 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.004167/0.363, allocations: 1.98 MB / 479.4 MB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.3644, allocations: 0.5778 MB / 480 MB, free: 5.191 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.3644, allocations: 8.062 kB / 480 MB, free: 5.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007008/0.3651, allocations: 335.4 kB / 480.3 MB, free: 4.855 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.3669, allocations: 325.1 kB / 480.6 MB, free: 4.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03198/0.3989, allocations: 17.25 MB / 497.9 MB, free: 2.906 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/0.4004, allocations: 1.444 MB / 499.3 MB, free: 1.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009966/0.4014, allocations: 303 kB / 499.6 MB, free: 1.129 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001133/0.4025, allocations: 0.7063 MB / 0.4886 GB, free: 432 kB / 398.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4025, allocations: 0 / 0.4886 GB, free: 432 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09094/0.4935, allocations: 39.61 MB / 0.5273 GB, free: 9.098 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.52, allocations: 3.938 kB / 0.5273 GB, free: 9.094 MB / 446.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] 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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.200762069085613]