Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009434/0.0009435, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008036/0.0008038, allocations: 94.03 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001994/0.0001995, allocations: 8 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1866, allocations: 51.28 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002095/0.1887, allocations: 2.537 MB / 410.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008117/0.1895, allocations: 0.704 MB / 411.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.1897, allocations: 9.156 kB / 411.4 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.1898, allocations: 43.62 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.19, allocations: 89.66 kB / 411.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.1902, allocations: 67.88 kB / 411.6 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.1905, allocations: 390.3 kB / 412 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.1908, allocations: 172.9 kB / 412.1 MB, free: 23.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.975e-05/0.1909, allocations: 127.4 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.191, allocations: 148.3 kB / 412.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.639e-05/0.1911, allocations: 20 kB / 412.4 MB, free: 23.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.739e-05/0.1912, allocations: 34.89 kB / 412.4 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.779e-05/0.1913, allocations: 75.72 kB / 412.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.1914, allocations: 188.9 kB / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.1917, allocations: 384.1 kB / 413.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1917, allocations: 4 kB / 413.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1917, allocations: 0 / 413.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.1917, allocations: 0 / 413.1 MB, free: 22.73 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.001287/0.193, allocations: 0.7663 MB / 413.8 MB, free: 21.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.1931, allocations: 12.03 kB / 413.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.462e-05/0.1931, allocations: 66.72 kB / 413.9 MB, free: 21.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.785e-05/0.1932, allocations: 44.47 kB / 414 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.1935, allocations: 334.6 kB / 414.3 MB, free: 21.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.1935, allocations: 33.03 kB / 414.3 MB, free: 21.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/0.1936, allocations: 32.36 kB / 414.4 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/0.1941, allocations: 338 kB / 414.7 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.1941, allocations: 0 / 414.7 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.1941, allocations: 12 kB / 414.7 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.1941, allocations: 11.94 kB / 414.7 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003377/0.1945, allocations: 234.5 kB / 414.9 MB, free: 20.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.1958, allocations: 1.327 MB / 416.3 MB, free: 19.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.1961, allocations: 187.2 kB / 416.5 MB, free: 19.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.1963, allocations: 124.8 kB / 416.6 MB, free: 19.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.1964, allocations: 8 kB / 416.6 MB, free: 19.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.1964, allocations: 34.56 kB / 416.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.1964, allocations: 4 kB / 416.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003781/0.1968, allocations: 224.7 kB / 416.8 MB, free: 18.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.784e-05/0.1968, allocations: 55.34 kB / 416.9 MB, free: 18.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.1971, allocations: 323.2 kB / 417.2 MB, free: 18.37 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.1971, allocations: 29.7 kB / 417.2 MB, free: 18.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.299e-05/0.1972, allocations: 208 kB / 417.4 MB, free: 18.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.23e-05/0.1972, allocations: 63.19 kB / 417.5 MB, free: 18.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.288e-05/0.1972, allocations: 4 kB / 417.5 MB, free: 18.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.493e-05/0.1973, allocations: 330.8 kB / 417.8 MB, free: 17.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.1974, allocations: 75.95 kB / 417.9 MB, free: 17.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.1975, allocations: 131.6 kB / 418 MB, free: 17.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.1977, allocations: 177.8 kB / 418.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1977, allocations: 0 / 418.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002935/0.198, allocations: 233.1 kB / 418.4 MB, free: 17.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.198, allocations: 11.98 kB / 418.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.198, allocations: 0 / 418.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.198, allocations: 4 kB / 418.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.1982, allocations: 52.17 kB / 418.5 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.1982, allocations: 0 / 418.5 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.1986, allocations: 91.67 kB / 418.6 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.1986, allocations: 8 kB / 418.6 MB, free: 16.9 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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.1987, allocations: 161.7 kB / 418.8 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.471e-05/0.1988, allocations: 23.72 kB / 418.8 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003205/0.1991, allocations: 199.7 kB / 419 MB, free: 16.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1991, allocations: 4 kB / 419 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1991, allocations: 0 / 419 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1991, allocations: 4 kB / 419 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005578/0.1997, allocations: 0.6277 MB / 419.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1997, allocations: 7.938 kB / 419.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.1999, allocations: 27.98 kB / 419.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1999, allocations: 4 kB / 419.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.1999, allocations: 4 kB / 419.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1999, allocations: 0 / 419.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1999, allocations: 0 / 419.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.2003, allocations: 386.8 kB / 420 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.992e-05/0.2003, allocations: 112.8 kB / 420.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.2004, allocations: 0 / 420.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004005/0.2008, allocations: 79.98 kB / 420.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.201, allocations: 75.86 kB / 420.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.201, allocations: 11.94 kB / 420.3 MB, free: 15.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001705/0.2012, allocations: 237.9 kB / 420.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2012, allocations: 0 / 420.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003027/0.2015, allocations: 83.69 kB / 420.6 MB, free: 14.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000519/0.202, allocations: 0.9082 MB / 421.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002578/0.2023, allocations: 186.8 kB / 421.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2023, allocations: 0 / 421.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.2024, allocations: 103.9 kB / 421.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.2028, allocations: 59.64 kB / 421.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.2051, allocations: 2.016 MB / 423.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001472/0.2053, allocations: 0.7755 MB / 424.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.2055, allocations: 103.4 kB / 424.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2055, allocations: 4 kB / 424.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.06/3.265, allocations: 5.069 MB / 429.8 MB, free: 5.41 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches