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.001261/0.001261, allocations: 119.9 kB / 17.79 MB, free: 5.285 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.001277/0.001277, allocations: 185.2 kB / 20.73 MB, free: 2.355 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.389/1.389, allocations: 225.6 MB / 249.1 MB, free: 3.59 MB / 190.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.002042/0.002042, allocations: 55.91 kB / 365.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1123, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004546/0.1169, allocations: 2.991 MB / 420.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.1182, allocations: 0.7089 MB / 421.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.1184, allocations: 11.94 kB / 421.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002324/0.1186, allocations: 63.36 kB / 421.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002815/0.1189, allocations: 115.1 kB / 421.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.1192, allocations: 99.83 kB / 421.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004478/0.1197, allocations: 418.3 kB / 422.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.12, allocations: 153.8 kB / 422.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.1202, allocations: 159.4 kB / 422.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002527/0.1204, allocations: 187.2 kB / 422.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.993e-05/0.1205, allocations: 40 kB / 422.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.1206, allocations: 60 kB / 422.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.1207, allocations: 119.6 kB / 422.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.1209, allocations: 199.1 kB / 423.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005651/0.1215, allocations: 0.4902 MB / 423.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1215, allocations: 3.938 kB / 423.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1215, allocations: 0 / 423.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1215, allocations: 0 / 423.5 MB, free: 6.797 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001595/0.1231, allocations: 0.7987 MB / 424.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1231, allocations: 12.03 kB / 424.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.782e-05/0.1232, allocations: 62.72 kB / 424.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.515e-05/0.1233, allocations: 44.66 kB / 424.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005431/0.1238, allocations: 354.7 kB / 424.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.1239, allocations: 25.03 kB / 424.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.1239, allocations: 28.38 kB / 424.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005643/0.1245, allocations: 350 kB / 425.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.1245, allocations: 0 / 425.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.1245, allocations: 12 kB / 425.2 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.1245, allocations: 11.94 kB / 425.2 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004191/0.125, allocations: 246.4 kB / 425.5 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.1268, allocations: 1.292 MB / 426.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003764/0.1272, allocations: 166.4 kB / 426.9 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000244/0.1274, allocations: 112.8 kB / 427 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.1275, allocations: 4 kB / 427 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.1275, allocations: 38.56 kB / 427.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 3.206e-06/0.1275, allocations: 7.922 kB / 427.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004943/0.128, allocations: 221.5 kB / 427.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.128, allocations: 55.69 kB / 427.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003708/0.1284, allocations: 322.9 kB / 427.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.1284, allocations: 37.64 kB / 427.7 MB, free: 2.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.1286, allocations: 208.4 kB / 427.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.285e-05/0.1286, allocations: 59.48 kB / 428 MB, free: 2.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.943e-05/0.1287, allocations: 45.7 kB / 428 MB, free: 2.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1289, allocations: 338.8 kB / 428.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.129, allocations: 71.95 kB / 428.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.1292, allocations: 136.3 kB / 428.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.1294, allocations: 163.6 kB / 428.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1294, allocations: 0 / 428.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003958/0.1298, allocations: 255.3 kB / 429 MB, free: 1.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1298, allocations: 4 kB / 429 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1298, allocations: 4 kB / 429 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1298, allocations: 0 / 429 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.13, allocations: 44.17 kB / 429 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.13, allocations: 8 kB / 429 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003558/0.1304, allocations: 71.77 kB / 429.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.1304, allocations: 8 kB / 429.1 MB, free: 0.9258 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.0001585/0.1306, allocations: 157.6 kB / 429.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.51e-05/0.1306, allocations: 23.86 kB / 429.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003987/0.131, allocations: 213.9 kB / 429.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.131, allocations: 0 / 429.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.131, allocations: 4 kB / 429.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.131, allocations: 3.938 kB / 429.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008352/0.1319, allocations: 0.628 MB / 430.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1319, allocations: 0 / 430.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001538/0.132, allocations: 27.98 kB / 430.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.132, allocations: 4 kB / 430.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.132, allocations: 4 kB / 430.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1321, allocations: 4.031 kB / 430.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1321, allocations: 0 / 430.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000509/0.1326, allocations: 383.3 kB / 430.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.83e-05/0.1327, allocations: 108.9 kB / 430.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.386e-05/0.1327, allocations: 8 kB / 430.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003837/0.1331, allocations: 55.98 kB / 430.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.1333, allocations: 75.88 kB / 430.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.1333, allocations: 7.938 kB / 430.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002506/0.1335, allocations: 233.9 kB / 431 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1335, allocations: 3.938 kB / 431 MB, free: 14.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003591/0.1339, allocations: 87.78 kB / 431.1 MB, free: 14.81 MB / 366.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.0008726/0.1348, allocations: 0.9278 MB / 432 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003587/0.1351, allocations: 174 kB / 432.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1351, allocations: 0.5625 kB / 432.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001904/0.1353, allocations: 103.9 kB / 432.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.1357, allocations: 56.73 kB / 432.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004105/0.1398, allocations: 3.063 MB / 435.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.1403, allocations: 0.7829 MB / 436.2 MB, free: 9.512 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.1404, allocations: 38.28 kB / 436.2 MB, free: 9.477 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.1406, allocations: 103.4 kB / 436.3 MB, free: 9.375 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1406, allocations: 0 / 436.3 MB, free: 9.375 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03413/0.1747, allocations: 7.471 MB / 443.8 MB, free: 2.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/8.299, allocations: 2.938 kB / 443.8 MB, free: 2.059 MB / 366.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 12.966826792806387]