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.001075/0.001075, allocations: 76.08 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.0009693/0.0009693, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.9329/0.9329, allocations: 173.4 MB / 200.4 MB, free: 9.422 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 1.843e-06/1.843e-06, allocations: 0 / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.188e-05/2.373e-05, allocations: 4.672 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003552/0.003576, allocations: 2.763 MB / 321.2 MB, free: 3.59 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.005003, allocations: 0.6933 MB / 321.9 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.0052, allocations: 7.938 kB / 321.9 MB, free: 2.883 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.005392, allocations: 59.44 kB / 321.9 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.005615, allocations: 123 kB / 322.1 MB, free: 2.703 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002986/0.005913, allocations: 111.7 kB / 322.2 MB, free: 2.594 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003283/0.006242, allocations: 426.1 kB / 322.6 MB, free: 2.176 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002232/0.006465, allocations: 142.3 kB / 322.7 MB, free: 2.039 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.006683, allocations: 247.4 kB / 323 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.006886, allocations: 131.6 kB / 323.1 MB, free: 1.668 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.487e-05/0.006931, allocations: 40 kB / 323.1 MB, free: 1.629 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.764e-05/0.007028, allocations: 59.98 kB / 323.2 MB, free: 1.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.007164, allocations: 111.6 kB / 323.3 MB, free: 1.461 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.007272, allocations: 143.6 kB / 323.4 MB, free: 1.32 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000445/0.007717, allocations: 0.4984 MB / 323.9 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.00772, allocations: 0 / 323.9 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.007721, allocations: 0 / 323.9 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.007729, allocations: 4 kB / 323.9 MB, free: 0.8164 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.001037/0.008766, allocations: 0.7194 MB / 324.7 MB, free: 64 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.008805, allocations: 8.922 kB / 324.7 MB, free: 56 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.98e-05/0.008874, allocations: 70.72 kB / 324.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.476e-05/0.008939, allocations: 40.7 kB / 324.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.009341, allocations: 292.5 kB / 325.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.009363, allocations: 29.03 kB / 325.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.092e-05/0.009404, allocations: 28.38 kB / 325.1 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004304/0.009834, allocations: 397.9 kB / 325.5 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.009846, allocations: 4.188 kB / 325.5 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.009869, allocations: 12.12 kB / 325.5 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.009878, allocations: 8 kB / 325.5 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003324/0.01021, allocations: 242.4 kB / 325.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.01138, allocations: 1.153 MB / 326.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002635/0.01164, allocations: 158.5 kB / 327.1 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.01182, allocations: 120.7 kB / 327.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.01184, allocations: 4 kB / 327.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.01187, allocations: 46.48 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.252e-06/0.01187, allocations: 0 / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.000338/0.0122, allocations: 223.1 kB / 327.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.909e-05/0.01223, allocations: 59.41 kB / 327.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.01248, allocations: 316.2 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.0125, allocations: 29.7 kB / 327.9 MB, free: 12.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.0126, allocations: 216.3 kB / 328.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.354e-05/0.01264, allocations: 59.48 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.714e-05/0.01269, allocations: 45.7 kB / 328.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.427e-05/0.01278, allocations: 338.8 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.151e-05/0.01287, allocations: 75.89 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.01299, allocations: 136.3 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.01315, allocations: 166.4 kB / 328.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.01315, allocations: 0 / 328.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002456/0.01339, allocations: 241.2 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.01341, allocations: 11.94 kB / 329.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.01341, allocations: 0 / 329.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.01343, allocations: 4 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.01353, allocations: 47.92 kB / 329.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.01354, allocations: 4 kB / 329.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.01373, allocations: 71.95 kB / 329.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.01375, allocations: 12 kB / 329.3 MB, free: 11.19 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.0001172/0.01387, allocations: 154.2 kB / 329.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.0139, allocations: 31.75 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000258/0.01416, allocations: 207.5 kB / 329.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.01417, allocations: 0 / 329.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.01417, allocations: 0 / 329.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.01417, allocations: 0 / 329.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005235/0.0147, allocations: 0.557 MB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.0147, allocations: 3.984 kB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.459e-05/0.01479, allocations: 39.86 kB / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.0148, allocations: 0 / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.01481, allocations: 4 kB / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.01481, allocations: 0 / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.01481, allocations: 0 / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003376/0.01515, allocations: 384.5 kB / 330.6 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.01519, allocations: 35.81 kB / 330.7 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.421e-05/0.01521, allocations: 4.094 kB / 330.7 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.01541, allocations: 59.92 kB / 330.7 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.01553, allocations: 75.86 kB / 330.8 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.01554, allocations: 4 kB / 330.8 MB, free: 9.566 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000158/0.0157, allocations: 231.1 kB / 331 MB, free: 9.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0157, allocations: 0 / 331 MB, free: 9.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002426/0.01594, allocations: 87.78 kB / 331.1 MB, free: 9.254 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.0005915/0.01653, allocations: 0.9239 MB / 332 MB, free: 8.297 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002484/0.01678, allocations: 178.1 kB / 332.2 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.01678, allocations: 0 / 332.2 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.01698, allocations: 103.5 kB / 332.3 MB, free: 8.027 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.0173, allocations: 69.44 kB / 332.4 MB, free: 7.957 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.01999, allocations: 2.986 MB / 335.4 MB, free: 4.828 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.02011, allocations: 172.8 kB / 335.5 MB, free: 4.645 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.415e-05/0.0202, allocations: 38.28 kB / 335.6 MB, free: 4.605 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.02032, allocations: 104.5 kB / 335.7 MB, free: 4.504 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.02032, allocations: 7.938 kB / 335.7 MB, free: 4.496 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.04243, allocations: 8.525 MB / 344.2 MB, free: 12.15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.003/7.045, allocations: 4 kB / 344.2 MB, free: 12.15 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 10.13260325603187]