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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008731/0.000873, allocations: 101.5 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.0002258, allocations: 4 kB / 351.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2098, allocations: 50.41 MB / 401.6 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0981/0.308, allocations: 81.46 MB / 483 MB, free: 15.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.3083, allocations: 79.95 kB / 483.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0172/0.3255, allocations: 6.373 MB / 489.5 MB, free: 8.539 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3255, allocations: 0 / 489.5 MB, free: 8.539 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.066e-05/0.3255, allocations: 4 kB / 489.5 MB, free: 8.535 MB / 362.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.001422/0.327, allocations: 0.7522 MB / 490.2 MB, free: 7.734 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.327, allocations: 8.031 kB / 490.3 MB, free: 7.727 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.416e-05/0.3271, allocations: 70.53 kB / 490.3 MB, free: 7.648 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.888e-05/0.3272, allocations: 39.53 kB / 490.4 MB, free: 7.609 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005692/0.3278, allocations: 357.3 kB / 490.7 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.3278, allocations: 24.66 kB / 490.7 MB, free: 7.199 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.168e-05/0.3279, allocations: 32 kB / 490.8 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000558/0.3285, allocations: 346.2 kB / 491.1 MB, free: 6.816 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.3285, allocations: 3.953 kB / 491.1 MB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.3285, allocations: 8.219 kB / 491.1 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.3285, allocations: 8 kB / 491.1 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004015/0.3289, allocations: 242.4 kB / 491.4 MB, free: 6.559 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.331, allocations: 1.335 MB / 492.7 MB, free: 5.141 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003969/0.3314, allocations: 251.7 kB / 492.9 MB, free: 4.867 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.3314, allocations: 96 / 492.9 MB, free: 4.867 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.3314, allocations: 42.5 kB / 493 MB, free: 4.816 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.052e-06/0.3315, allocations: 0 / 493 MB, free: 4.816 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004527/0.3319, allocations: 236.9 kB / 493.2 MB, free: 4.582 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.332, allocations: 55.41 kB / 493.3 MB, free: 4.516 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003058/0.3323, allocations: 294 kB / 493.6 MB, free: 4.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.3323, allocations: 25.7 kB / 493.6 MB, free: 4.199 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.3324, allocations: 215.9 kB / 493.8 MB, free: 3.984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.617e-05/0.3325, allocations: 59.23 kB / 493.8 MB, free: 3.926 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-05/0.3325, allocations: 4 kB / 493.9 MB, free: 3.922 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3326, allocations: 338.8 kB / 494.2 MB, free: 3.582 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.3327, allocations: 67.97 kB / 494.2 MB, free: 3.516 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.3329, allocations: 130.8 kB / 494.4 MB, free: 3.363 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001136/0.333, allocations: 66.52 kB / 494.4 MB, free: 3.301 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.333, allocations: 0 / 494.4 MB, free: 3.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000359/0.3334, allocations: 237.1 kB / 494.7 MB, free: 3.062 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3334, allocations: 8 kB / 494.7 MB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.3334, allocations: 224 / 494.7 MB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3335, allocations: 11.98 kB / 494.7 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.3336, allocations: 43.91 kB / 494.7 MB, free: 3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3337, allocations: 4 kB / 494.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.334, allocations: 91.72 kB / 494.8 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.3341, allocations: 12 kB / 494.8 MB, free: 2.895 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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.0001548/0.3342, allocations: 149.7 kB / 495 MB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.577e-05/0.3343, allocations: 27.62 kB / 495 MB, free: 2.711 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004372/0.3347, allocations: 203.8 kB / 495.2 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3348, allocations: 0 / 495.2 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3348, allocations: 4 kB / 495.2 MB, free: 2.496 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3348, allocations: 7.984 kB / 495.2 MB, free: 2.488 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007806/0.3356, allocations: 0.6277 MB / 495.9 MB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3356, allocations: 0 / 495.9 MB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.3357, allocations: 35.86 kB / 495.9 MB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.3358, allocations: 0 / 495.9 MB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.3358, allocations: 8 kB / 495.9 MB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3358, allocations: 0 / 495.9 MB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.3358, allocations: 7.984 kB / 495.9 MB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000504/0.3363, allocations: 384.5 kB / 496.3 MB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.971e-05/0.3364, allocations: 104.8 kB / 496.4 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.007e-05/0.3365, allocations: 4 kB / 496.4 MB, free: 1.227 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004131/0.3369, allocations: 79.94 kB / 496.5 MB, free: 1.148 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.3371, allocations: 79.86 kB / 496.5 MB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.3371, allocations: 8 kB / 496.5 MB, free: 1.062 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002624/0.3374, allocations: 237.9 kB / 496.8 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3374, allocations: 3.938 kB / 496.8 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003977/0.3378, allocations: 91.69 kB / 496.9 MB, free: 0.7344 MB / 362.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.0008989/0.3387, allocations: 1.001 MB / 497.9 MB, free: 15.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003294/0.339, allocations: 167.9 kB / 498 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.339, allocations: 0 / 498 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.3392, allocations: 107.9 kB / 498.1 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.3396, allocations: 56.34 kB / 498.2 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.3429, allocations: 3.043 MB / 0.4895 GB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.3433, allocations: 0.7833 MB / 0.4903 GB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.3435, allocations: 38.22 kB / 0.4903 GB, free: 11.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.3436, allocations: 99.41 kB / 0.4904 GB, free: 11.3 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3436, allocations: 0 / 0.4904 GB, free: 11.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01906/0.3627, allocations: 6.306 MB / 0.4965 GB, free: 5.203 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.3629, allocations: 192.5 kB / 0.4967 GB, free: 4.961 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.315, allocations: 4 kB / 0.4967 GB, free: 4.957 MB / 378.7 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat does not exist to compare? outputFormat=mat