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.001098/0.001098, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001019/0.001019, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9083/0.9083, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.883e-06/1.883e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.219e-05/2.408e-05, allocations: 6.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003151/0.003175, allocations: 2.795 MB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.004379, allocations: 0.7244 MB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.004557, allocations: 4 kB / 328.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.004745, allocations: 71.36 kB / 328.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002487/0.004993, allocations: 115 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.005409, allocations: 107.8 kB / 328.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003688/0.005777, allocations: 422.1 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.006008, allocations: 138.4 kB / 328.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.006252, allocations: 239.5 kB / 329.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.006426, allocations: 143.6 kB / 329.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.294e-05/0.006469, allocations: 40 kB / 329.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.529e-05/0.006564, allocations: 55.94 kB / 329.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.00668, allocations: 111.6 kB / 329.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.974e-05/0.006779, allocations: 139.7 kB / 329.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004973/0.007277, allocations: 0.5023 MB / 330.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.00728, allocations: 0 / 330.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.007282, allocations: 0 / 330.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.007288, allocations: 0 / 330.1 MB, free: 10.35 MB / 298.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.001099/0.008386, allocations: 0.7301 MB / 330.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.008433, allocations: 8.031 kB / 330.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.106e-05/0.008494, allocations: 66.72 kB / 330.9 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.259e-05/0.008567, allocations: 44.7 kB / 331 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.009009, allocations: 292.5 kB / 331.3 MB, free: 9.152 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.00903, allocations: 21.03 kB / 331.3 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.173e-05/0.009072, allocations: 32.38 kB / 331.3 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005098/0.009582, allocations: 397.8 kB / 331.7 MB, free: 8.688 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.009592, allocations: 192 / 331.7 MB, free: 8.688 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.009617, allocations: 16.12 kB / 331.7 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.009625, allocations: 4 kB / 331.7 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002811/0.009906, allocations: 238.5 kB / 332 MB, free: 8.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.01117, allocations: 1.157 MB / 333.1 MB, free: 7.195 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.01147, allocations: 173.2 kB / 333.3 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.01165, allocations: 116.8 kB / 333.4 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.01168, allocations: 0 / 333.4 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.368e-05/0.01171, allocations: 38.5 kB / 333.4 MB, free: 6.855 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.062e-06/0.01171, allocations: 0 / 333.4 MB, free: 6.855 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003484/0.01206, allocations: 237.5 kB / 333.7 MB, free: 6.617 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.01208, allocations: 55.41 kB / 333.7 MB, free: 6.551 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.01233, allocations: 328.1 kB / 334 MB, free: 6.227 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.01235, allocations: 25.7 kB / 334.1 MB, free: 6.195 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.671e-05/0.01244, allocations: 208.4 kB / 334.3 MB, free: 5.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/0.01248, allocations: 59.53 kB / 334.3 MB, free: 5.922 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.805e-05/0.01254, allocations: 41.72 kB / 334.4 MB, free: 5.875 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.923e-05/0.01262, allocations: 346.8 kB / 334.7 MB, free: 5.527 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.846e-05/0.01271, allocations: 63.97 kB / 334.8 MB, free: 5.465 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.01283, allocations: 139.6 kB / 334.9 MB, free: 5.301 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.013, allocations: 166 kB / 335.1 MB, free: 5.113 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.013, allocations: 4 kB / 335.1 MB, free: 5.109 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004457/0.01345, allocations: 245.2 kB / 335.3 MB, free: 4.863 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.01346, allocations: 11.94 kB / 335.3 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.01347, allocations: 4 kB / 335.3 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.01349, allocations: 0 / 335.3 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.0136, allocations: 43.92 kB / 335.4 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.01361, allocations: 12.17 kB / 335.4 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.0138, allocations: 63.83 kB / 335.4 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.01382, allocations: 12 kB / 335.5 MB, free: 4.719 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.0001089/0.01393, allocations: 145.8 kB / 335.6 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.01397, allocations: 31.75 kB / 335.6 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002541/0.01422, allocations: 207.6 kB / 335.8 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.01422, allocations: 0 / 335.8 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.01423, allocations: 8 kB / 335.8 MB, free: 4.316 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.01423, allocations: 0 / 335.8 MB, free: 4.316 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005088/0.01474, allocations: 0.5558 MB / 336.4 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01474, allocations: 0 / 336.4 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.884e-05/0.01484, allocations: 31.98 kB / 336.4 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.01485, allocations: 4 kB / 336.4 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.01486, allocations: 0 / 336.4 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.165e-06/0.01486, allocations: 0 / 336.4 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.01486, allocations: 7.938 kB / 336.4 MB, free: 3.664 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.0152, allocations: 380.5 kB / 336.8 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.875e-05/0.01524, allocations: 43.89 kB / 336.8 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.01526, allocations: 0 / 336.8 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.01545, allocations: 55.92 kB / 336.9 MB, free: 3.176 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.01558, allocations: 75.86 kB / 337 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.01559, allocations: 8 kB / 337 MB, free: 3.094 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001569/0.01575, allocations: 235.1 kB / 337.2 MB, free: 2.863 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.01575, allocations: 0 / 337.2 MB, free: 2.863 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002453/0.01599, allocations: 87.78 kB / 337.3 MB, free: 2.777 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.0005355/0.01653, allocations: 0.9238 MB / 338.2 MB, free: 1.824 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002518/0.01678, allocations: 176.9 kB / 338.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.01678, allocations: 0 / 338.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.01689, allocations: 99.88 kB / 338.5 MB, free: 1.559 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.01718, allocations: 57.58 kB / 338.6 MB, free: 1.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002659/0.01984, allocations: 3.012 MB / 341.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.01995, allocations: 172.8 kB / 341.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.283e-05/0.02004, allocations: 30.28 kB / 341.8 MB, free: 14.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.02016, allocations: 104.5 kB / 341.9 MB, free: 14.03 MB / 314.7 MB Notification: Performance of SimCode: time 9.12e-07/0.02016, allocations: 4 kB / 341.9 MB, free: 14.03 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.04116, allocations: 8.484 MB / 350.4 MB, free: 5.727 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.678/6.719, allocations: 7.5 kB / 350.4 MB, free: 5.723 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 9.671199795790017]