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.001509/0.001509, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008206/0.0008206, allocations: 102 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.858e-05/1.85e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1195, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2993/0.4189, allocations: 80.74 MB / 468.3 MB, free: 13.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.4191, allocations: 67.97 kB / 468.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01682/0.436, allocations: 6.297 MB / 474.7 MB, free: 7.559 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.436, allocations: 0 / 474.7 MB, free: 7.559 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.271e-05/0.4361, allocations: 11.94 kB / 474.7 MB, free: 7.547 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.001263/0.4373, allocations: 0.6943 MB / 475.4 MB, free: 6.805 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.4374, allocations: 11.97 kB / 475.4 MB, free: 6.793 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.41e-05/0.4375, allocations: 39.53 kB / 475.4 MB, free: 6.754 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005773/0.4381, allocations: 357.4 kB / 475.8 MB, free: 6.367 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.4381, allocations: 19.92 kB / 475.8 MB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.605e-05/0.4382, allocations: 16 kB / 475.8 MB, free: 6.332 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003853/0.4386, allocations: 213.5 kB / 476 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.439, allocations: 290.6 kB / 476.3 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.439, allocations: 0 / 476.3 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.4391, allocations: 0 / 476.3 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.4391, allocations: 8 kB / 476.3 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.4407, allocations: 1.268 MB / 477.6 MB, free: 4.477 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.4411, allocations: 248.3 kB / 477.8 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.4413, allocations: 96.83 kB / 477.9 MB, free: 4.109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.198e-05/0.4413, allocations: 8 kB / 477.9 MB, free: 4.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.4414, allocations: 30.56 kB / 477.9 MB, free: 4.062 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.342e-06/0.4414, allocations: 0 / 477.9 MB, free: 4.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.002376/0.4438, allocations: 0.693 MB / 478.6 MB, free: 3.363 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.4438, allocations: 55.69 kB / 478.7 MB, free: 3.297 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.4441, allocations: 262.1 kB / 478.9 MB, free: 3.035 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.4441, allocations: 29.64 kB / 479 MB, free: 3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.4442, allocations: 211.7 kB / 479.2 MB, free: 2.789 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.124e-05/0.4443, allocations: 51.2 kB / 479.2 MB, free: 2.738 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.202e-05/0.4443, allocations: 0 / 479.2 MB, free: 2.738 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.4444, allocations: 342.8 kB / 479.6 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.4445, allocations: 71.92 kB / 479.6 MB, free: 2.324 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.4447, allocations: 128.9 kB / 479.8 MB, free: 2.172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/0.4468, allocations: 0.5931 MB / 480.3 MB, free: 1.578 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4468, allocations: 3.938 kB / 480.4 MB, free: 1.574 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002376/0.4492, allocations: 0.7558 MB / 481.1 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.4492, allocations: 4 kB / 481.1 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.4493, allocations: 4.25 kB / 481.1 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.4493, allocations: 8 kB / 481.1 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.4495, allocations: 43.91 kB / 481.2 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.4495, allocations: 4 kB / 481.2 MB, free: 0.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004024/0.4499, allocations: 83.77 kB / 481.3 MB, free: 0.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.4499, allocations: 8 kB / 481.3 MB, free: 0.6602 MB / 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 0.0001001/0.45, allocations: 112.9 kB / 481.4 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002228/0.4523, allocations: 0.7014 MB / 482.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.047e-05/0.4523, allocations: 27.66 kB / 482.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002363/0.4547, allocations: 0.7293 MB / 482.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.4547, allocations: 0 / 482.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.4547, allocations: 0 / 482.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4547, allocations: 0 / 482.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/0.4574, allocations: 1.118 MB / 483.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.4575, allocations: 0 / 483.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.4576, allocations: 27.98 kB / 484 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.4576, allocations: 0 / 484 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.4577, allocations: 4 kB / 484 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.4577, allocations: 0 / 484 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4577, allocations: 3.953 kB / 484 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.4601, allocations: 0.9034 MB / 484.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.906e-05/0.4602, allocations: 112.8 kB / 485 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.028e-05/0.4602, allocations: 0 / 485 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000411/0.4606, allocations: 83.94 kB / 485.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.4608, allocations: 71.86 kB / 485.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.4608, allocations: 12 kB / 485.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001863/0.461, allocations: 202 kB / 485.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.461, allocations: 0 / 485.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003679/0.4614, allocations: 83.69 kB / 485.4 MB, free: 12.38 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.002717/0.4641, allocations: 1.529 MB / 487 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002972/0.4644, allocations: 171.8 kB / 487.1 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4645, allocations: 0 / 487.1 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.4646, allocations: 103.9 kB / 487.2 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.4649, allocations: 30.44 kB / 487.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.4662, allocations: 0.6024 MB / 487.9 MB, free: 9.871 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.4666, allocations: 0.7872 MB / 488.7 MB, free: 9.055 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00013/0.4667, allocations: 30.08 kB / 488.7 MB, free: 9.027 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.4669, allocations: 107.4 kB / 488.8 MB, free: 8.926 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4669, allocations: 3.938 kB / 488.8 MB, free: 8.922 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.4896, allocations: 5.081 MB / 493.9 MB, free: 3.883 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.4898, allocations: 167.7 kB / 494 MB, free: 3.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/2.261, allocations: 0 / 494 MB, free: 3.68 MB / 362.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