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.001231/0.001231, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 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.00145/0.00145, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9367/0.9367, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 3.226e-06/3.226e-06, allocations: 0 / 318.4 MB, free: 6.262 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.864e-05/3.187e-05, allocations: 5.516 kB / 318.4 MB, free: 6.258 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004748/0.00478, allocations: 2.774 MB / 321.2 MB, free: 3.465 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.006364, allocations: 0.6894 MB / 321.9 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002904/0.006654, allocations: 11.94 kB / 321.9 MB, free: 2.758 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002698/0.006924, allocations: 59.42 kB / 321.9 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003739/0.007298, allocations: 115 kB / 322.1 MB, free: 2.586 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004342/0.007732, allocations: 115.7 kB / 322.2 MB, free: 2.473 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005657/0.008298, allocations: 426.1 kB / 322.6 MB, free: 2.055 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003127/0.00861, allocations: 142.3 kB / 322.7 MB, free: 1.918 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003417/0.008952, allocations: 239.5 kB / 323 MB, free: 1.684 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002925/0.009245, allocations: 143.6 kB / 323.1 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.001e-05/0.009315, allocations: 40 kB / 323.1 MB, free: 1.504 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001359/0.00945, allocations: 51.94 kB / 323.2 MB, free: 1.453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.009613, allocations: 119.6 kB / 323.3 MB, free: 1.336 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.00976, allocations: 139.6 kB / 323.4 MB, free: 1.199 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008994/0.01066, allocations: 0.5062 MB / 324 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.01066, allocations: 0 / 324 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.01067, allocations: 0 / 324 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.01068, allocations: 0 / 324 MB, free: 0.6914 MB / 282.7 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.001571/0.01225, allocations: 0.715 MB / 324.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.0123, allocations: 16.86 kB / 324.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.323e-05/0.01238, allocations: 66.72 kB / 324.7 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.692e-05/0.01247, allocations: 40.7 kB / 324.8 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005505/0.01302, allocations: 292.4 kB / 325.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.01305, allocations: 29.03 kB / 325.1 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.692e-05/0.01311, allocations: 28.38 kB / 325.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006473/0.01375, allocations: 397.9 kB / 325.5 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.01377, allocations: 192 / 325.5 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.01381, allocations: 16.12 kB / 325.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.01382, allocations: 8 kB / 325.5 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.01437, allocations: 242.4 kB / 325.8 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.01569, allocations: 1.157 MB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002738/0.01596, allocations: 162.5 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.01614, allocations: 112.8 kB / 327.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.01617, allocations: 4 kB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.01619, allocations: 42.44 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.01619, allocations: 0 / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003554/0.01655, allocations: 225.7 kB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.01658, allocations: 55.41 kB / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002653/0.01684, allocations: 324.2 kB / 327.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.01686, allocations: 33.7 kB / 327.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.01697, allocations: 212.4 kB / 328.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.845e-05/0.01701, allocations: 59.47 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/0.01707, allocations: 45.7 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.973e-05/0.01716, allocations: 334.8 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.136e-05/0.01726, allocations: 71.97 kB / 328.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.01738, allocations: 144.2 kB / 328.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.01753, allocations: 166.6 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.01753, allocations: 4 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000251/0.01779, allocations: 237.2 kB / 329.1 MB, free: 11.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.0178, allocations: 7.938 kB / 329.1 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.01781, allocations: 4 kB / 329.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.01782, allocations: 4 kB / 329.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.01795, allocations: 47.91 kB / 329.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.01796, allocations: 4 kB / 329.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.01818, allocations: 71.94 kB / 329.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.01821, allocations: 11.98 kB / 329.3 MB, free: 11.07 MB / 298.7 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.0001174/0.01833, allocations: 154.2 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.044e-05/0.01837, allocations: 31.75 kB / 329.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002768/0.01865, allocations: 203.1 kB / 329.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.01865, allocations: 4 kB / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.01865, allocations: 0 / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.01866, allocations: 0 / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005331/0.01919, allocations: 0.5609 MB / 330.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.01919, allocations: 7.969 kB / 330.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.611e-05/0.01929, allocations: 27.92 kB / 330.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.01929, allocations: 4 kB / 330.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.0193, allocations: 4 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.01931, allocations: 4 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.01931, allocations: 0 / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.01963, allocations: 376.5 kB / 330.6 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.01967, allocations: 31.83 kB / 330.7 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.01969, allocations: 4 kB / 330.7 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.0199, allocations: 63.92 kB / 330.7 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.02002, allocations: 75.86 kB / 330.8 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.02003, allocations: 4 kB / 330.8 MB, free: 9.445 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001659/0.0202, allocations: 235.1 kB / 331 MB, free: 9.215 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0202, allocations: 0 / 331 MB, free: 9.215 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002551/0.02046, allocations: 91.78 kB / 331.1 MB, free: 9.125 MB / 298.7 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.0005765/0.02103, allocations: 0.9158 MB / 332 MB, free: 8.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002464/0.02128, allocations: 179.6 kB / 332.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.02128, allocations: 4 kB / 332.2 MB, free: 8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.02139, allocations: 103.9 kB / 332.3 MB, free: 7.898 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.02168, allocations: 59.86 kB / 332.4 MB, free: 7.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.02422, allocations: 2.982 MB / 335.4 MB, free: 4.715 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.02434, allocations: 172.8 kB / 335.5 MB, free: 4.531 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.02444, allocations: 42.27 kB / 335.6 MB, free: 4.488 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.02456, allocations: 104.5 kB / 335.7 MB, free: 4.387 MB / 298.7 MB Notification: Performance of SimCode: time 8.02e-07/0.02456, allocations: 0 / 335.7 MB, free: 4.387 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02008/0.04464, allocations: 8.53 MB / 344.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.007/7.052, allocations: 8.062 kB / 344.2 MB, free: 12.03 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/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 659] "" Variables in the reference:time,energy.y,superCap.capacitor.v Variables in the result:time,energy.y,superCap.capacitor.v [Calling sys.exit(0), Time elapsed: 10.33369703963399]