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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 93.5 kB / 16.65 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 182.5 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003157, allocations: 8 kB / 301.5 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1366, allocations: 50.42 MB / 351.9 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003775/0.1404, allocations: 2.625 MB / 354.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.1421, allocations: 0.7051 MB / 355.3 MB, free: 12 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003595/0.1425, allocations: 11.94 kB / 355.3 MB, free: 0 / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003236/0.1428, allocations: 39.8 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000457/0.1433, allocations: 91.3 kB / 355.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.1437, allocations: 91.92 kB / 355.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005939/0.1443, allocations: 410.2 kB / 355.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003597/0.1447, allocations: 169.6 kB / 356.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.1449, allocations: 131.4 kB / 356.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.1452, allocations: 155.2 kB / 356.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.163e-05/0.1453, allocations: 16 kB / 356.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.1454, allocations: 35.98 kB / 356.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.1456, allocations: 79.66 kB / 356.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002205/0.1458, allocations: 200.7 kB / 356.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000508/0.1463, allocations: 462.2 kB / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1464, allocations: 4 kB / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1464, allocations: 0 / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.1464, allocations: 4 kB / 357.1 MB, free: 14.14 MB / 302.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.001795/0.1482, allocations: 0.768 MB / 357.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.1482, allocations: 8.031 kB / 357.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/0.1484, allocations: 70.72 kB / 358 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.1485, allocations: 44.47 kB / 358 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004911/0.149, allocations: 338.6 kB / 358.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.149, allocations: 25.03 kB / 358.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.1491, allocations: 32.28 kB / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005843/0.1497, allocations: 358 kB / 358.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1497, allocations: 0 / 358.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.1497, allocations: 12 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.1497, allocations: 8 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004683/0.1502, allocations: 242.4 kB / 359 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.1523, allocations: 1.307 MB / 360.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003852/0.1527, allocations: 178.5 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/0.1529, allocations: 128.8 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.165e-05/0.153, allocations: 11.97 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.153, allocations: 38.5 kB / 360.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.263e-06/0.153, allocations: 0 / 360.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004964/0.1535, allocations: 232.6 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.1536, allocations: 51.41 kB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003867/0.154, allocations: 322.9 kB / 361.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.154, allocations: 29.7 kB / 361.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.1542, allocations: 212 kB / 361.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.488e-05/0.1542, allocations: 55.2 kB / 361.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.1543, allocations: 21.72 kB / 361.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1544, allocations: 338.8 kB / 361.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.1546, allocations: 71.97 kB / 362 MB, free: 9.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.1548, allocations: 135.7 kB / 362.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.155, allocations: 169.7 kB / 362.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1551, allocations: 0 / 362.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004366/0.1555, allocations: 249 kB / 362.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1555, allocations: 4 kB / 362.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.1555, allocations: 7.938 kB / 362.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1556, allocations: 0 / 362.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.1557, allocations: 43.98 kB / 362.6 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.1558, allocations: 11.92 kB / 362.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004337/0.1562, allocations: 87.97 kB / 362.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.1562, allocations: 8 kB / 362.7 MB, free: 8.273 MB / 302.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.0001811/0.1564, allocations: 161.7 kB / 362.8 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.623e-05/0.1565, allocations: 23.72 kB / 362.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004149/0.1569, allocations: 203.7 kB / 363.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1569, allocations: 0 / 363.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1569, allocations: 0 / 363.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1569, allocations: 0 / 363.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008643/0.1578, allocations: 0.624 MB / 363.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1578, allocations: 4.031 kB / 363.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.158, allocations: 39.92 kB / 363.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.158, allocations: 0 / 363.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.889e-05/0.158, allocations: 4 kB / 363.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.158, allocations: 0 / 363.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.158, allocations: 0 / 363.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005434/0.1586, allocations: 385.8 kB / 364.1 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.1587, allocations: 116.8 kB / 364.2 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/0.1588, allocations: 4 kB / 364.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/0.1593, allocations: 75.92 kB / 364.3 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.1595, allocations: 83.8 kB / 364.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.1595, allocations: 7.938 kB / 364.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002679/0.1598, allocations: 233.9 kB / 364.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.144e-06/0.1598, allocations: 0 / 364.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003947/0.1602, allocations: 87.62 kB / 364.7 MB, free: 6.141 MB / 302.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.0009151/0.1611, allocations: 0.916 MB / 365.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003714/0.1615, allocations: 175.8 kB / 365.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1615, allocations: 0.5625 kB / 365.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.1617, allocations: 115.8 kB / 365.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/0.1622, allocations: 56.73 kB / 366 MB, free: 4.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004467/0.1667, allocations: 3.246 MB / 369.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.1671, allocations: 0.7793 MB / 370 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.1673, allocations: 34.3 kB / 370 MB, free: 0.625 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.1675, allocations: 107.4 kB / 370.1 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of SimCode: time 1.302e-06/0.1675, allocations: 3.938 kB / 370.1 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2238/0.3913, allocations: 6.32 MB / 376.4 MB, free: 23.74 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003693/0.3917, allocations: 212.5 kB / 376.7 MB, free: 23.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.107/2.499, allocations: 1.312 kB / 376.7 MB, free: 23.49 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/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) Reference file matches