Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001658/0.001658, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002056/0.002056, allocations: 212.1 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 59.91 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2666, allocations: 53.41 MB / 431.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007754/0.2744, allocations: 5.903 MB / 437.1 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004847/0.2792, allocations: 2.769 MB / 439.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006528/0.2799, allocations: 27.81 kB / 439.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00175/0.2816, allocations: 0.7734 MB / 440.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001169/0.2828, allocations: 0.5633 MB / 441.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.284, allocations: 0.5176 MB / 441.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001864/0.2858, allocations: 1.602 MB / 443.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006856/0.2865, allocations: 411 kB / 443.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008036/0.2873, allocations: 0.6268 MB / 444.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.2883, allocations: 0.7744 MB / 445.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001998/0.2885, allocations: 132 kB / 445.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003821/0.2889, allocations: 211.9 kB / 445.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005873/0.2895, allocations: 0.6466 MB / 446.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000846/0.2904, allocations: 0.9243 MB / 447 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002638/0.293, allocations: 2.51 MB / 449.6 MB, free: 4.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.293, allocations: 4 kB / 449.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.293, allocations: 3.938 kB / 449.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.289e-05/0.293, allocations: 0 / 449.6 MB, free: 4.363 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.004843/0.2979, allocations: 2.569 MB / 452.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.2979, allocations: 8.031 kB / 452.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001883/0.2981, allocations: 147.4 kB / 452.3 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003503/0.2985, allocations: 231.5 kB / 452.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002485/0.3009, allocations: 1.506 MB / 454 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/0.3011, allocations: 143.7 kB / 454.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.3012, allocations: 84.38 kB / 454.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/0.3031, allocations: 1.111 MB / 455.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.3031, allocations: 15.92 kB / 455.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-05/0.3032, allocations: 36 kB / 455.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/0.3032, allocations: 24 kB / 455.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.3047, allocations: 0.7143 MB / 456.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006928/0.3116, allocations: 4.534 MB / 460.7 MB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.3127, allocations: 0.5194 MB / 461.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007264/0.3134, allocations: 357.5 kB / 461.5 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.383e-05/0.3135, allocations: 7.984 kB / 461.5 MB, free: 7.996 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.387e-05/0.3135, allocations: 38.56 kB / 461.6 MB, free: 7.949 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 4.228e-06/0.3135, allocations: 7.922 kB / 461.6 MB, free: 7.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001753/0.3153, allocations: 0.8299 MB / 462.4 MB, free: 7.105 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002472/0.3155, allocations: 423.2 kB / 462.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003657/0.3192, allocations: 2.767 MB / 465.6 MB, free: 3.785 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.238e-05/0.3193, allocations: 37.7 kB / 465.6 MB, free: 3.742 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007936/0.3201, allocations: 0.8914 MB / 466.5 MB, free: 2.844 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.3202, allocations: 162.6 kB / 466.7 MB, free: 2.684 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.3204, allocations: 122.2 kB / 466.8 MB, free: 2.559 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3205, allocations: 334 kB / 467.1 MB, free: 2.227 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005261/0.3211, allocations: 257.1 kB / 467.4 MB, free: 1.977 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007857/0.3219, allocations: 0.5324 MB / 467.9 MB, free: 1.324 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.3229, allocations: 0.6171 MB / 468.5 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.3229, allocations: 4 kB / 468.5 MB, free: 0.625 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001604/0.3245, allocations: 0.8581 MB / 469.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.3245, allocations: 8 kB / 469.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.3245, allocations: 8 kB / 469.4 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.3246, allocations: 8 kB / 469.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006745/0.3252, allocations: 164 kB / 469.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.3253, allocations: 8 kB / 469.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009533/0.3262, allocations: 163.3 kB / 469.7 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.323e-05/0.3263, allocations: 39.98 kB / 469.8 MB, free: 15.37 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.0007759/0.327, allocations: 0.556 MB / 470.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000249/0.3273, allocations: 186.8 kB / 470.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/0.3287, allocations: 0.7107 MB / 471.2 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.3287, allocations: 4 kB / 471.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3287, allocations: 0 / 471.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.3287, allocations: 7.922 kB / 471.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003329/0.332, allocations: 2.101 MB / 473.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.332, allocations: 0 / 473.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/0.3325, allocations: 103.9 kB / 473.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.3325, allocations: 4 kB / 473.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.596e-05/0.3326, allocations: 15.98 kB / 473.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.3326, allocations: 7.938 kB / 473.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3326, allocations: 4.094 kB / 473.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.3343, allocations: 1.052 MB / 474.5 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000798/0.3351, allocations: 334.6 kB / 474.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.3353, allocations: 20 kB / 474.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009433/0.3362, allocations: 139.8 kB / 475 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003081/0.3366, allocations: 151.7 kB / 475.2 MB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.079e-05/0.3366, allocations: 20 kB / 475.2 MB, free: 9.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002667/0.3393, allocations: 1.964 MB / 477.1 MB, free: 7.871 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3393, allocations: 0 / 477.1 MB, free: 7.871 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008797/0.3401, allocations: 323.3 kB / 477.5 MB, free: 7.555 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.003815/0.344, allocations: 1.97 MB / 479.4 MB, free: 5.707 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.3452, allocations: 0.5733 MB / 480 MB, free: 5.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.3452, allocations: 4.375 kB / 480 MB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006233/0.3458, allocations: 335.5 kB / 480.3 MB, free: 4.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.3472, allocations: 324.6 kB / 480.7 MB, free: 4.492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02471/0.3719, allocations: 17.26 MB / 497.9 MB, free: 2.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.3731, allocations: 1.444 MB / 499.4 MB, free: 1.371 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00083/0.374, allocations: 291.1 kB / 499.6 MB, free: 1.082 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009088/0.3749, allocations: 0.7023 MB / 0.4886 GB, free: 388 kB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3749, allocations: 4 kB / 0.4886 GB, free: 384 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0949/0.4698, allocations: 39.59 MB / 0.5273 GB, free: 8.965 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.5, allocations: 6.25 kB / 0.5273 GB, free: 8.961 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv. Warning: Get data of variable energy2.y from file Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.340339286998642]