Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001291/0.001291, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00086/0.00086, allocations: 82.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.572e-05/2.575e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08848/0.08852, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3126/0.4012, allocations: 81.81 MB / 451.9 MB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.4014, allocations: 68.59 kB / 452 MB, free: 11.44 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05065/0.4521, allocations: 27.03 MB / 479 MB, free: 1.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4522, allocations: 0 / 479 MB, free: 1.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.4522, allocations: 4 kB / 479 MB, free: 1.934 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000552/0.4527, allocations: 0.6097 MB / 479.6 MB, free: 1.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.4528, allocations: 16.02 kB / 479.7 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.214e-05/0.4528, allocations: 38.56 kB / 479.7 MB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.165e-05/0.4529, allocations: 31.62 kB / 479.7 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003249/0.4532, allocations: 261.5 kB / 480 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.4533, allocations: 11.98 kB / 480 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.4533, allocations: 12 kB / 480 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.4536, allocations: 149.5 kB / 480.1 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.4536, allocations: 0 / 480.1 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.4537, allocations: 4 kB / 480.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.4537, allocations: 0 / 480.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.4538, allocations: 63.97 kB / 480.2 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006752/0.4545, allocations: 484.4 kB / 480.7 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.4547, allocations: 102.5 kB / 480.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.4548, allocations: 88.89 kB / 480.9 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.4549, allocations: 0 / 480.9 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002802/0.4551, allocations: 230.6 kB / 481.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.312e-06/0.4552, allocations: 0 / 481.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006559/0.4558, allocations: 440 kB / 481.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.501e-05/0.4559, allocations: 166.3 kB / 481.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005525/0.4565, allocations: 470.4 kB / 482.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.4565, allocations: 33.69 kB / 482.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.726e-05/0.4566, allocations: 97.08 kB / 482.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.109e-05/0.4567, allocations: 27.7 kB / 482.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-05/0.4567, allocations: 4 kB / 482.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.4568, allocations: 322.8 kB / 482.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.4569, allocations: 63.98 kB / 482.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.4571, allocations: 63.98 kB / 482.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.4572, allocations: 178.6 kB / 482.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.4573, allocations: 3.953 kB / 482.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005645/0.4578, allocations: 412.2 kB / 483.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.326e-05/0.4579, allocations: 126.8 kB / 483.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.4579, allocations: 4 kB / 483.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.458, allocations: 0 / 483.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.023e-05/0.458, allocations: 0 / 483.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.458, allocations: 0 / 483.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/0.4582, allocations: 19.98 kB / 483.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/0.4583, allocations: 123.7 kB / 483.6 MB, free: 12.97 MB / 362.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.0001961/0.4585, allocations: 241.5 kB / 483.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.426e-05/0.4586, allocations: 39.48 kB / 483.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.4587, allocations: 71.42 kB / 483.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4587, allocations: 0 / 483.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.4587, allocations: 0 / 483.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.4587, allocations: 0 / 483.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009614/0.4597, allocations: 0.8447 MB / 484.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.4597, allocations: 0 / 484.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.629e-06/0.4597, allocations: 0 / 484.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.4597, allocations: 0 / 484.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/0.4598, allocations: 23.98 kB / 484.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4598, allocations: 0 / 484.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.4598, allocations: 0 / 484.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006743/0.4605, allocations: 0.5525 MB / 485.4 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000343/0.4608, allocations: 256.4 kB / 485.6 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.779e-05/0.4609, allocations: 8 kB / 485.6 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.461, allocations: 16 kB / 485.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.4612, allocations: 31.95 kB / 485.7 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/0.4613, allocations: 119.8 kB / 485.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004952/0.4618, allocations: 388.9 kB / 486.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4618, allocations: 0 / 486.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002891/0.4621, allocations: 40 kB / 486.2 MB, free: 10.19 MB / 362.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.001054/0.4632, allocations: 1.109 MB / 487.3 MB, free: 9.031 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005189/0.4637, allocations: 453.5 kB / 487.8 MB, free: 8.539 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4637, allocations: 0 / 487.8 MB, free: 8.539 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003119/0.4641, allocations: 381.6 kB / 488.1 MB, free: 8.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/0.4646, allocations: 106.9 kB / 488.2 MB, free: 8.012 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.4657, allocations: 0.6222 MB / 488.9 MB, free: 7.344 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.4661, allocations: 0.8064 MB / 489.7 MB, free: 6.508 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.761e-05/0.4662, allocations: 17.17 kB / 489.7 MB, free: 6.488 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.815e-05/0.4662, allocations: 23.44 kB / 489.7 MB, free: 6.465 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4662, allocations: 3.938 kB / 489.7 MB, free: 6.461 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.4849, allocations: 6.909 MB / 496.6 MB, free: 15.48 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.4851, allocations: 152 kB / 496.8 MB, free: 15.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.53/2.015, allocations: 0 / 496.8 MB, free: 15.25 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat