Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001337/0.001337, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001439/0.001439, allocations: 215.3 kB / 23.75 MB, free: 4.668 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.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 47.92 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2664, allocations: 53.37 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004559/0.2709, allocations: 3.018 MB / 434.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.2724, allocations: 0.7517 MB / 434.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.2726, allocations: 12 kB / 434.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.2729, allocations: 59.38 kB / 435 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002743/0.2731, allocations: 107.1 kB / 435.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003526/0.2735, allocations: 119.7 kB / 435.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004791/0.274, allocations: 410.3 kB / 435.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002802/0.2742, allocations: 146.4 kB / 435.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.2744, allocations: 167.4 kB / 435.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00028/0.2747, allocations: 183.2 kB / 436.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.086e-05/0.2748, allocations: 40 kB / 436.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.2749, allocations: 56 kB / 436.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.2751, allocations: 111.7 kB / 436.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.2753, allocations: 203 kB / 436.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006711/0.2759, allocations: 0.498 MB / 437 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2759, allocations: 0 / 437 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2759, allocations: 0 / 437 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.276, allocations: 0 / 437 MB, free: 0.9805 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001641/0.2776, allocations: 0.7234 MB / 437.7 MB, free: 228 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.2776, allocations: 8.031 kB / 437.7 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.327e-05/0.2777, allocations: 78.66 kB / 437.8 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.382e-05/0.2778, allocations: 40.7 kB / 437.8 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005367/0.2783, allocations: 284.9 kB / 438.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.2784, allocations: 25.03 kB / 438.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.177e-05/0.2784, allocations: 32.38 kB / 438.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005576/0.279, allocations: 350 kB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.279, allocations: 0 / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.279, allocations: 12 kB / 438.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.188e-06/0.279, allocations: 8 kB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004438/0.2795, allocations: 242.4 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.2814, allocations: 1.257 MB / 440 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.2817, allocations: 158.5 kB / 440.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.282, allocations: 120.8 kB / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.536e-05/0.282, allocations: 7.938 kB / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.2821, allocations: 34.5 kB / 440.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.2821, allocations: 4 kB / 440.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004986/0.2826, allocations: 231.5 kB / 440.6 MB, free: 13.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.2826, allocations: 55.41 kB / 440.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003733/0.283, allocations: 316.2 kB / 440.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.283, allocations: 29.7 kB / 440.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.2832, allocations: 220.3 kB / 441.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.105e-05/0.2832, allocations: 51.53 kB / 441.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.212e-05/0.2833, allocations: 53.66 kB / 441.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.2835, allocations: 334.8 kB / 441.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.2836, allocations: 71.95 kB / 441.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.2838, allocations: 139.6 kB / 441.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.284, allocations: 167.6 kB / 442 MB, free: 11.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.284, allocations: 0 / 442 MB, free: 11.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000401/0.2844, allocations: 241.1 kB / 442.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2845, allocations: 6.812 kB / 442.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2845, allocations: 4.25 kB / 442.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.2845, allocations: 11.98 kB / 442.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.2847, allocations: 43.92 kB / 442.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2847, allocations: 4 kB / 442.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.2851, allocations: 67.77 kB / 442.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.638e-05/0.2851, allocations: 8 kB / 442.3 MB, free: 11.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.000171/0.2853, allocations: 169.6 kB / 442.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.474e-05/0.2853, allocations: 23.86 kB / 442.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003969/0.2857, allocations: 199.7 kB / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2857, allocations: 4 kB / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.2857, allocations: 0 / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.2857, allocations: 0 / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008363/0.2866, allocations: 0.5959 MB / 443.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.2866, allocations: 7.984 kB / 443.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.2867, allocations: 35.95 kB / 443.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.2867, allocations: 4 kB / 443.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.2867, allocations: 0 / 443.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.2867, allocations: 4 kB / 443.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2867, allocations: 0 / 443.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005309/0.2873, allocations: 383.3 kB / 443.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/0.2873, allocations: 39.77 kB / 443.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.073e-05/0.2874, allocations: 4.062 kB / 443.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004002/0.2878, allocations: 55.92 kB / 443.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.288, allocations: 75.86 kB / 443.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.288, allocations: 11.94 kB / 443.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002626/0.2883, allocations: 231.1 kB / 444.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2883, allocations: 4 kB / 444.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.2886, allocations: 83.78 kB / 444.2 MB, free: 9.328 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.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 (16): * Single equations (assignments): 16 * 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.0008839/0.2895, allocations: 0.9122 MB / 445.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003782/0.2899, allocations: 175.8 kB / 445.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2899, allocations: 0 / 445.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.2901, allocations: 106.8 kB / 445.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.2905, allocations: 59.62 kB / 445.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/0.2947, allocations: 3.054 MB / 448.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.2951, allocations: 0.7753 MB / 449.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.2953, allocations: 30.3 kB / 449.4 MB, free: 4.035 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.2955, allocations: 107.4 kB / 449.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of SimCode: time 1.312e-06/0.2955, allocations: 0 / 449.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0386/0.334, allocations: 7.647 MB / 457.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.67, allocations: 10.17 kB / 457.1 MB, free: 12.45 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv --start-time 0 --stop-time 720 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.670160263998696]