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.001508/0.001508, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002002/0.002002, allocations: 213 kB / 23.73 MB, free: 4.164 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.439/1.439, allocations: 230.5 MB / 257.4 MB, free: 7.793 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.002152/0.002152, allocations: 63.89 kB / 377.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.257, allocations: 53.41 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008301/0.2653, allocations: 5.215 MB / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005543/0.2708, allocations: 2.594 MB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001146/0.2719, allocations: 27.81 kB / 439 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002154/0.2741, allocations: 0.7433 MB / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001777/0.2759, allocations: 0.5594 MB / 440.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.2775, allocations: 0.521 MB / 440.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002357/0.2798, allocations: 1.594 MB / 442.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006698/0.2805, allocations: 383.1 kB / 442.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008172/0.2813, allocations: 0.6384 MB / 443.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009509/0.2823, allocations: 0.7197 MB / 444.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002031/0.2825, allocations: 132 kB / 444.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004192/0.2829, allocations: 211.9 kB / 444.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006108/0.2835, allocations: 0.6465 MB / 445.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007445/0.2842, allocations: 0.7147 MB / 445.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002625/0.2869, allocations: 2.533 MB / 448.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2869, allocations: 0 / 448.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2869, allocations: 0 / 448.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.051e-05/0.2869, allocations: 0 / 448.3 MB, free: 5.168 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.005228/0.2921, allocations: 2.573 MB / 450.9 MB, free: 2.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.2922, allocations: 15.98 kB / 450.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001781/0.2924, allocations: 139.5 kB / 451.1 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003768/0.2927, allocations: 239.5 kB / 451.3 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002566/0.2953, allocations: 1.502 MB / 452.8 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.2955, allocations: 147.7 kB / 453 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.2956, allocations: 84.38 kB / 453 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.2978, allocations: 1.721 MB / 454.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.2978, allocations: 0 / 454.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.2979, allocations: 40 kB / 454.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.483e-05/0.2979, allocations: 20 kB / 454.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.2993, allocations: 0.7182 MB / 455.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007191/0.3065, allocations: 4.18 MB / 459.7 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.3077, allocations: 0.5192 MB / 460.2 MB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007432/0.3084, allocations: 358.2 kB / 460.6 MB, free: 8.406 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.986e-05/0.3085, allocations: 4 kB / 460.6 MB, free: 8.402 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.3085, allocations: 50.5 kB / 460.6 MB, free: 8.344 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.795e-06/0.3085, allocations: 4 kB / 460.6 MB, free: 8.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001839/0.3104, allocations: 0.8182 MB / 461.5 MB, free: 7.516 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003247/0.3107, allocations: 423.2 kB / 461.9 MB, free: 7.004 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00408/0.3148, allocations: 2.779 MB / 464.6 MB, free: 4.184 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.502e-05/0.3148, allocations: 33.7 kB / 464.7 MB, free: 4.145 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000877/0.3157, allocations: 0.8953 MB / 465.6 MB, free: 3.242 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.3159, allocations: 162.6 kB / 465.7 MB, free: 3.082 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.3161, allocations: 122.3 kB / 465.9 MB, free: 2.957 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.3163, allocations: 338 kB / 466.2 MB, free: 2.621 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005449/0.3168, allocations: 249.2 kB / 466.4 MB, free: 2.379 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009551/0.3178, allocations: 0.8838 MB / 467.3 MB, free: 1.289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.3188, allocations: 0.621 MB / 467.9 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.3189, allocations: 4 kB / 467.9 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001811/0.3207, allocations: 0.862 MB / 468.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3207, allocations: 8 kB / 468.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.3207, allocations: 11.94 kB / 468.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.203e-05/0.3207, allocations: 8 kB / 468.8 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005926/0.3213, allocations: 160 kB / 469 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.595e-05/0.3213, allocations: 12 kB / 469 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.3224, allocations: 163.3 kB / 469.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/0.3225, allocations: 32 kB / 469.2 MB, free: 15.33 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.0008542/0.3233, allocations: 0.556 MB / 469.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002772/0.3236, allocations: 194.7 kB / 469.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001416/0.325, allocations: 0.6992 MB / 470.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.325, allocations: 4 kB / 470.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.325, allocations: 0 / 470.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.325, allocations: 3.938 kB / 470.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003561/0.3286, allocations: 1.895 MB / 472.5 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3286, allocations: 0 / 472.5 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004955/0.3291, allocations: 115.9 kB / 472.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.136e-06/0.3291, allocations: 4 kB / 472.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.3291, allocations: 8 kB / 472.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.3291, allocations: 4 kB / 472.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3291, allocations: 0 / 472.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.3311, allocations: 1.052 MB / 473.7 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009227/0.332, allocations: 346.6 kB / 474.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001769/0.3322, allocations: 16 kB / 474.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.3332, allocations: 135.8 kB / 474.2 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003341/0.3335, allocations: 155.7 kB / 474.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-05/0.3336, allocations: 16 kB / 474.4 MB, free: 10.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002822/0.3364, allocations: 1.971 MB / 476.3 MB, free: 8.039 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3364, allocations: 0 / 476.3 MB, free: 8.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001019/0.3374, allocations: 315.3 kB / 476.6 MB, free: 7.73 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.004075/0.3415, allocations: 2.015 MB / 478.7 MB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.3428, allocations: 0.5772 MB / 479.2 MB, free: 5.281 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.3428, allocations: 4 kB / 479.2 MB, free: 5.277 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006611/0.3434, allocations: 327.5 kB / 479.6 MB, free: 4.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.345, allocations: 318 kB / 479.9 MB, free: 4.648 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02845/0.3735, allocations: 17.25 MB / 497.1 MB, free: 3.012 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.3745, allocations: 0.8535 MB / 498 MB, free: 2.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009104/0.3754, allocations: 291.1 kB / 498.3 MB, free: 1.828 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009328/0.3764, allocations: 0.7062 MB / 499 MB, free: 1.121 MB / 398.1 MB Notification: Performance of SimCode: time 1.783e-06/0.3764, allocations: 4 kB / 499 MB, free: 1.117 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09478/0.4712, allocations: 41.76 MB / 0.5281 GB, free: 7.574 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.08, allocations: 11.91 kB / 0.5281 GB, free: 7.562 MB / 446.1 MB " [Timeout remaining time 646] (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: 17.995541899930686]