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.001756/0.001756, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002162/0.002162, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001537/0.001537, allocations: 47.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2764, allocations: 53.38 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007452/0.2838, allocations: 5.199 MB / 436.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004821/0.2886, allocations: 2.6 MB / 438.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005877/0.2892, allocations: 31.81 kB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001733/0.291, allocations: 0.7505 MB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.2921, allocations: 0.5672 MB / 440.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.2933, allocations: 0.5127 MB / 440.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001894/0.2952, allocations: 1.594 MB / 442.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006716/0.2959, allocations: 411 kB / 442.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008476/0.2967, allocations: 0.6306 MB / 443.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009158/0.2976, allocations: 0.7783 MB / 444.1 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001991/0.2978, allocations: 132 kB / 444.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004213/0.2983, allocations: 212 kB / 444.5 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005957/0.2989, allocations: 0.6504 MB / 445.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000728/0.2996, allocations: 0.7186 MB / 445.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002648/0.3022, allocations: 2.525 MB / 448.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3022, allocations: 0 / 448.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3022, allocations: 0 / 448.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.172e-05/0.3023, allocations: 4 kB / 448.4 MB, free: 5.25 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.005324/0.3076, allocations: 2.58 MB / 451 MB, free: 2.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.3077, allocations: 8.031 kB / 451 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/0.3078, allocations: 143.5 kB / 451.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003729/0.3082, allocations: 239.4 kB / 451.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002619/0.3108, allocations: 1.491 MB / 452.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.311, allocations: 147.4 kB / 453 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.3111, allocations: 87.94 kB / 453.1 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002195/0.3133, allocations: 1.716 MB / 454.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.3133, allocations: 0 / 454.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.855e-05/0.3134, allocations: 40 kB / 454.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.3134, allocations: 24 kB / 454.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.3148, allocations: 0.7182 MB / 455.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00726/0.322, allocations: 4.179 MB / 459.7 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.3232, allocations: 0.5143 MB / 460.3 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007339/0.3239, allocations: 361.9 kB / 460.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.801e-05/0.324, allocations: 12 kB / 460.6 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/0.324, allocations: 38.56 kB / 460.7 MB, free: 8.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.574e-06/0.324, allocations: 0 / 460.7 MB, free: 8.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001862/0.3259, allocations: 0.825 MB / 461.5 MB, free: 7.598 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002399/0.3261, allocations: 427.1 kB / 461.9 MB, free: 7.082 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003918/0.33, allocations: 2.775 MB / 464.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-05/0.3301, allocations: 37.7 kB / 464.7 MB, free: 4.223 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008117/0.3309, allocations: 0.8913 MB / 465.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/0.3311, allocations: 166.6 kB / 465.8 MB, free: 3.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.3313, allocations: 134.2 kB / 465.9 MB, free: 3.023 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3315, allocations: 330 kB / 466.2 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005392/0.332, allocations: 253.2 kB / 466.5 MB, free: 2.449 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.3331, allocations: 0.8839 MB / 467.3 MB, free: 1.359 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.3342, allocations: 0.6133 MB / 468 MB, free: 0.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.3342, allocations: 0 / 468 MB, free: 0.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001716/0.3359, allocations: 0.8657 MB / 468.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.3359, allocations: 11.98 kB / 468.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.3359, allocations: 8 kB / 468.8 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.3359, allocations: 8.344 kB / 468.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005973/0.3365, allocations: 167.7 kB / 469 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/0.3366, allocations: 11.94 kB / 469 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/0.3376, allocations: 159.4 kB / 469.2 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.248e-05/0.3376, allocations: 28 kB / 469.2 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.0008425/0.3384, allocations: 0.5586 MB / 469.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002615/0.3387, allocations: 190.7 kB / 470 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.3401, allocations: 0.7041 MB / 470.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-06/0.3401, allocations: 11.88 kB / 470.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3401, allocations: 0 / 470.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.3401, allocations: 4 kB / 470.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/0.3438, allocations: 1.883 MB / 472.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.3438, allocations: 4 kB / 472.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005131/0.3443, allocations: 111.9 kB / 472.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.3443, allocations: 0 / 472.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.504e-05/0.3443, allocations: 16 kB / 472.7 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.3443, allocations: 0 / 472.7 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.3443, allocations: 4 kB / 472.7 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.3463, allocations: 1.052 MB / 473.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009279/0.3472, allocations: 358.5 kB / 474.1 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.3474, allocations: 12 kB / 474.1 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009979/0.3484, allocations: 139.8 kB / 474.2 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003228/0.3487, allocations: 159.7 kB / 474.4 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/0.3488, allocations: 12.12 kB / 474.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002789/0.3516, allocations: 1.964 MB / 476.4 MB, free: 8.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3516, allocations: 0 / 476.4 MB, free: 8.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009391/0.3525, allocations: 319.4 kB / 476.7 MB, free: 7.797 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.003972/0.3565, allocations: 2.011 MB / 478.7 MB, free: 5.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001304/0.3578, allocations: 0.5773 MB / 479.3 MB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.3578, allocations: 0 / 479.3 MB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006456/0.3584, allocations: 335.4 kB / 479.6 MB, free: 5.062 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.36, allocations: 327.9 kB / 479.9 MB, free: 4.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02489/0.3849, allocations: 17.24 MB / 497.2 MB, free: 3.125 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009863/0.3859, allocations: 0.8535 MB / 498 MB, free: 2.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007488/0.3866, allocations: 291.1 kB / 498.3 MB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009341/0.3876, allocations: 0.7101 MB / 499 MB, free: 1.23 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3876, allocations: 0 / 499 MB, free: 1.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08748/0.475, allocations: 41.97 MB / 0.5283 GB, free: 7.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.99, allocations: 3.984 kB / 0.5283 GB, free: 7.566 MB / 446.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 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.csv","/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] "Error: Could not read variable energy2.y in file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv. Warning: Get data of variable energy2.y from file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.889590914011933]