Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 185 kB / 23.72 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 47.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2733, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004547/0.2779, allocations: 3.01 MB / 425.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.2793, allocations: 0.7167 MB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.2794, allocations: 11.94 kB / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00023/0.2797, allocations: 59.42 kB / 426.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002995/0.28, allocations: 115 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.2803, allocations: 103.9 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004746/0.2808, allocations: 426.2 kB / 427 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.2811, allocations: 146.4 kB / 427.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.2813, allocations: 167.4 kB / 427.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000319/0.2816, allocations: 179.2 kB / 427.5 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.2816, allocations: 43.94 kB / 427.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.2818, allocations: 55.98 kB / 427.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.2819, allocations: 115.6 kB / 427.7 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.2821, allocations: 218.9 kB / 427.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005936/0.2827, allocations: 0.4906 MB / 428.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2827, allocations: 0 / 428.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2827, allocations: 0 / 428.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.2827, allocations: 0 / 428.4 MB, free: 8.781 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.001624/0.2844, allocations: 0.7195 MB / 429.2 MB, free: 8.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.2844, allocations: 8.031 kB / 429.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.46e-05/0.2845, allocations: 74.66 kB / 429.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.343e-05/0.2846, allocations: 44.66 kB / 429.3 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005148/0.2851, allocations: 292.9 kB / 429.6 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.2851, allocations: 25.03 kB / 429.6 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.402e-05/0.2852, allocations: 32.38 kB / 429.6 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005941/0.2858, allocations: 338 kB / 429.9 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.2858, allocations: 0 / 429.9 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.2858, allocations: 16 kB / 430 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2859, allocations: 8 kB / 430 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004393/0.2863, allocations: 238.4 kB / 430.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.2882, allocations: 1.257 MB / 431.5 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.2886, allocations: 166.5 kB / 431.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.2888, allocations: 116.8 kB / 431.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.2889, allocations: 0 / 431.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.2889, allocations: 42.5 kB / 431.8 MB, free: 5.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.002e-06/0.2889, allocations: 4 kB / 431.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005148/0.2894, allocations: 225.7 kB / 432 MB, free: 5.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.2895, allocations: 51.41 kB / 432.1 MB, free: 4.965 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003839/0.2898, allocations: 328.2 kB / 432.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.2899, allocations: 25.7 kB / 432.4 MB, free: 4.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.29, allocations: 212.4 kB / 432.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.212e-05/0.2901, allocations: 59.48 kB / 432.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.951e-05/0.2902, allocations: 45.7 kB / 432.7 MB, free: 4.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.2904, allocations: 338.8 kB / 433 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.2905, allocations: 75.97 kB / 433.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001869/0.2907, allocations: 135.5 kB / 433.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.2909, allocations: 167.6 kB / 433.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.2909, allocations: 0 / 433.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003883/0.2913, allocations: 251.9 kB / 433.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2913, allocations: 11.94 kB / 433.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.2913, allocations: 0 / 433.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.2914, allocations: 4 kB / 433.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.2915, allocations: 51.84 kB / 433.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.2916, allocations: 0 / 433.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003601/0.2919, allocations: 72.02 kB / 433.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.816e-05/0.2919, allocations: 12 kB / 433.8 MB, free: 3.117 MB / 334.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.0001542/0.2921, allocations: 157.7 kB / 434 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.962e-05/0.2922, allocations: 23.86 kB / 434 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003805/0.2925, allocations: 191.8 kB / 434.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.2925, allocations: 4 kB / 434.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2925, allocations: 4 kB / 434.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2926, allocations: 0 / 434.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008396/0.2934, allocations: 0.6087 MB / 434.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.2934, allocations: 0 / 434.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.2936, allocations: 31.92 kB / 434.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.2936, allocations: 0 / 434.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.2936, allocations: 0 / 434.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.2936, allocations: 4 kB / 434.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2936, allocations: 0 / 434.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005432/0.2941, allocations: 392.2 kB / 435.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-05/0.2942, allocations: 31.81 kB / 435.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/0.2942, allocations: 4 kB / 435.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003983/0.2946, allocations: 63.98 kB / 435.3 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.2948, allocations: 75.86 kB / 435.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.2948, allocations: 7.938 kB / 435.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002578/0.2951, allocations: 235.1 kB / 435.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2951, allocations: 0 / 435.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003633/0.2955, allocations: 87.78 kB / 435.7 MB, free: 1.137 MB / 334.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.0008648/0.2963, allocations: 0.9161 MB / 436.6 MB, free: 192 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003502/0.2967, allocations: 175.8 kB / 436.8 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2967, allocations: 0 / 436.8 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002145/0.2969, allocations: 104.4 kB / 436.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000421/0.2973, allocations: 64.77 kB / 437 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004019/0.3013, allocations: 3.041 MB / 440 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/0.3017, allocations: 0.7751 MB / 440.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.3019, allocations: 42.27 kB / 440.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.302, allocations: 111.4 kB / 440.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.302, allocations: 0 / 440.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/0.3387, allocations: 7.663 MB / 448.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.53, allocations: 9.328 kB / 448.6 MB, free: 4.227 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.394609549999586]