Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.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.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00161/0.00161, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001156/0.001156, allocations: 92.95 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.186e-05/3.206e-05, allocations: 4 kB / 350.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 51.47 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3356/0.4424, allocations: 83.54 MB / 485.7 MB, free: 5.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.4426, allocations: 65.03 kB / 485.7 MB, free: 5.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05189/0.4945, allocations: 27.45 MB / 0.5011 GB, free: 12.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4946, allocations: 0 / 0.5011 GB, free: 12.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.4946, allocations: 4 kB / 0.5011 GB, free: 12.34 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006277/0.4953, allocations: 0.6243 MB / 0.5018 GB, free: 11.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.4953, allocations: 8.031 kB / 0.5018 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.306e-05/0.4954, allocations: 42.55 kB / 0.5018 GB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.726e-05/0.4955, allocations: 35.62 kB / 0.5018 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003144/0.4958, allocations: 252 kB / 0.5021 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.4958, allocations: 12 kB / 0.5021 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.4959, allocations: 8 kB / 0.5021 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00027/0.4961, allocations: 153.5 kB / 0.5022 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.4962, allocations: 3.938 kB / 0.5022 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.4962, allocations: 4 kB / 0.5022 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.4962, allocations: 0 / 0.5022 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001363/0.4963, allocations: 71.95 kB / 0.5023 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007245/0.4971, allocations: 478.1 kB / 0.5028 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.4973, allocations: 102.5 kB / 0.5029 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.4974, allocations: 88.89 kB / 0.503 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.142e-05/0.4974, allocations: 0 / 0.503 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003041/0.4977, allocations: 229.3 kB / 0.5032 GB, free: 10.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.743e-06/0.4978, allocations: 0 / 0.5032 GB, free: 10.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006848/0.4984, allocations: 435.8 kB / 0.5036 GB, free: 9.637 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.4986, allocations: 170.2 kB / 0.5038 GB, free: 9.434 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005568/0.4991, allocations: 462.5 kB / 0.5042 GB, free: 8.973 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.275e-05/0.4992, allocations: 29.7 kB / 0.5042 GB, free: 8.938 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.216e-05/0.4992, allocations: 97.12 kB / 0.5043 GB, free: 8.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.332e-05/0.4993, allocations: 23.72 kB / 0.5043 GB, free: 8.816 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.308e-05/0.4993, allocations: 11.94 kB / 0.5043 GB, free: 8.805 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.4994, allocations: 326.8 kB / 0.5047 GB, free: 8.477 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.4996, allocations: 59.97 kB / 0.5047 GB, free: 8.418 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.4997, allocations: 63.98 kB / 0.5048 GB, free: 8.355 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.4998, allocations: 172.7 kB / 0.5049 GB, free: 8.164 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4998, allocations: 3.953 kB / 0.5049 GB, free: 8.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005263/0.5004, allocations: 409.7 kB / 0.5053 GB, free: 7.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.399e-05/0.5005, allocations: 126.8 kB / 0.5055 GB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.5005, allocations: 0 / 0.5055 GB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.5005, allocations: 0 / 0.5055 GB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.909e-05/0.5005, allocations: 12 kB / 0.5055 GB, free: 7.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.5005, allocations: 0 / 0.5055 GB, free: 7.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.5007, allocations: 15.92 kB / 0.5055 GB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.5008, allocations: 120 kB / 0.5056 GB, free: 7.438 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0001768/0.501, allocations: 245.5 kB / 0.5058 GB, free: 7.164 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.721e-05/0.501, allocations: 43.48 kB / 0.5059 GB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.5011, allocations: 67.27 kB / 0.5059 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.5012, allocations: 0 / 0.5059 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.5012, allocations: 8.047 kB / 0.5059 GB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.716e-06/0.5012, allocations: 4 kB / 0.506 GB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009311/0.5021, allocations: 0.8292 MB / 0.5068 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5021, allocations: 0 / 0.5068 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.726e-06/0.5021, allocations: 4 kB / 0.5068 GB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.5022, allocations: 5.531 kB / 0.5068 GB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.587e-05/0.5022, allocations: 23.98 kB / 0.5068 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.5022, allocations: 0 / 0.5068 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.5022, allocations: 3.938 kB / 0.5068 GB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006404/0.5029, allocations: 0.5486 MB / 0.5073 GB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.5032, allocations: 256.4 kB / 0.5076 GB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.099e-05/0.5033, allocations: 8 kB / 0.5076 GB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.5034, allocations: 15.98 kB / 0.5076 GB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.5035, allocations: 31.95 kB / 0.5076 GB, free: 5.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/0.5037, allocations: 119.9 kB / 0.5077 GB, free: 5.062 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004363/0.5041, allocations: 380.9 kB / 0.5081 GB, free: 4.691 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5041, allocations: 4 kB / 0.5081 GB, free: 4.688 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000295/0.5044, allocations: 44 kB / 0.5082 GB, free: 4.645 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.001022/0.5055, allocations: 1.112 MB / 0.5092 GB, free: 3.484 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000492/0.506, allocations: 457.5 kB / 0.5097 GB, free: 2.988 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.506, allocations: 0 / 0.5097 GB, free: 2.988 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003148/0.5063, allocations: 381.5 kB / 0.51 GB, free: 2.566 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005409/0.5068, allocations: 100.6 kB / 0.5101 GB, free: 2.473 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.508, allocations: 0.6185 MB / 0.5107 GB, free: 1.812 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004682/0.5085, allocations: 0.8104 MB / 0.5115 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.06e-05/0.5086, allocations: 7.297 kB / 0.5115 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.053e-05/0.5086, allocations: 27.42 kB / 0.5116 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5086, allocations: 0 / 0.5116 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.5318, allocations: 6.899 MB / 0.5183 GB, free: 10.12 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002669/0.5321, allocations: 153.8 kB / 0.5184 GB, free: 9.891 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/2.28, allocations: 0 / 0.5184 GB, free: 9.891 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat