Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_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.001204/0.001204, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009921/0.0009921, allocations: 98.75 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.615e-05/1.616e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 51.49 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3196/0.4211, allocations: 81.55 MB / 476.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001558/0.4213, allocations: 70.92 kB / 476.9 MB, free: 11.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01477/0.4361, allocations: 6.351 MB / 483.2 MB, free: 6.258 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4361, allocations: 4 kB / 483.2 MB, free: 6.254 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.4362, allocations: 4 kB / 483.2 MB, free: 6.25 MB / 346.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.001019/0.4372, allocations: 0.6982 MB / 483.9 MB, free: 5.535 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.4372, allocations: 10.98 kB / 484 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.634e-05/0.4373, allocations: 39.53 kB / 484 MB, free: 5.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004677/0.4378, allocations: 356.7 kB / 484.3 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.4378, allocations: 18.73 kB / 484.4 MB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.4379, allocations: 20 kB / 484.4 MB, free: 5.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003456/0.4382, allocations: 209.7 kB / 484.6 MB, free: 4.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004359/0.4387, allocations: 293.3 kB / 484.9 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.4387, allocations: 0 / 484.9 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.4387, allocations: 0 / 484.9 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4387, allocations: 8 kB / 484.9 MB, free: 4.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.4401, allocations: 1.26 MB / 486.1 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.4404, allocations: 240.8 kB / 486.4 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.4406, allocations: 99.02 kB / 486.5 MB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.4406, allocations: 4 kB / 486.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.39e-05/0.4406, allocations: 41.94 kB / 486.5 MB, free: 3.324 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.112e-06/0.4406, allocations: 0 / 486.5 MB, free: 3.324 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.00226/0.4429, allocations: 0.6952 MB / 487.2 MB, free: 2.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.021e-05/0.4429, allocations: 59.41 kB / 487.3 MB, free: 2.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.4432, allocations: 255 kB / 487.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.4432, allocations: 29.53 kB / 487.5 MB, free: 2.363 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.318e-05/0.4433, allocations: 219.6 kB / 487.8 MB, free: 2.184 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.088e-05/0.4433, allocations: 53.94 kB / 487.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.141e-05/0.4433, allocations: 0 / 487.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.695e-05/0.4434, allocations: 333.9 kB / 488.1 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.178e-05/0.4435, allocations: 64.8 kB / 488.2 MB, free: 1.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.4436, allocations: 128.2 kB / 488.3 MB, free: 1.645 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002017/0.4456, allocations: 0.6003 MB / 488.9 MB, free: 1.074 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.4457, allocations: 0 / 488.9 MB, free: 1.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002222/0.4479, allocations: 0.7495 MB / 489.7 MB, free: 376 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.4479, allocations: 8 kB / 489.7 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.4479, allocations: 0 / 489.7 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.4479, allocations: 7.938 kB / 489.7 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.4481, allocations: 53.11 kB / 489.7 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.4481, allocations: 7.938 kB / 489.8 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003837/0.4485, allocations: 83.58 kB / 489.8 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.246e-05/0.4486, allocations: 8 kB / 489.8 MB, free: 212 kB / 346.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 () * 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 6.941e-05/0.4486, allocations: 112.9 kB / 490 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002329/0.451, allocations: 0.6913 MB / 490.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.972e-05/0.451, allocations: 23.72 kB / 490.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002431/0.4535, allocations: 0.7238 MB / 491.4 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.4535, allocations: 7.984 kB / 491.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.4535, allocations: 4 kB / 491.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.4535, allocations: 1.781 kB / 491.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002824/0.4563, allocations: 1.105 MB / 492.5 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4564, allocations: 4.031 kB / 492.5 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.4565, allocations: 35.88 kB / 492.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.4565, allocations: 3.984 kB / 492.6 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.4566, allocations: 0 / 492.6 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.4566, allocations: 4 kB / 492.6 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4566, allocations: 0 / 492.6 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002517/0.4591, allocations: 0.9041 MB / 493.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.925e-05/0.4592, allocations: 106.7 kB / 493.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.4592, allocations: 4 kB / 493.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004201/0.4597, allocations: 75.97 kB / 493.6 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.4598, allocations: 79.53 kB / 493.7 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.4599, allocations: 4 kB / 493.7 MB, free: 12.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001963/0.4601, allocations: 220.3 kB / 493.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4601, allocations: 0 / 493.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003875/0.4605, allocations: 83.67 kB / 494 MB, free: 12.28 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 () * 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.002785/0.4633, allocations: 1.518 MB / 495.5 MB, free: 10.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002543/0.4635, allocations: 160.2 kB / 495.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4635, allocations: 9.75 kB / 495.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.4637, allocations: 100.1 kB / 495.8 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.464, allocations: 30.61 kB / 495.8 MB, free: 10.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.4653, allocations: 0.6126 MB / 496.4 MB, free: 9.996 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.4656, allocations: 0.7831 MB / 497.2 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001582/0.4658, allocations: 34.06 kB / 497.3 MB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.4659, allocations: 98.22 kB / 497.4 MB, free: 9.133 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4659, allocations: 0 / 497.4 MB, free: 9.133 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02439/0.4903, allocations: 5.077 MB / 0.4907 GB, free: 4.117 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003064/0.4907, allocations: 167.3 kB / 0.4908 GB, free: 3.918 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/2.351, allocations: 0 / 0.4908 GB, free: 3.918 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat does not exist to compare? outputFormat=mat