Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_cpp_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.001608/0.001608, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.483/2.483, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.00122/0.00122, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.33e-05/3.341e-05, allocations: 4 kB / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 47.58 MB / 369.2 MB, free: 2.125 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.432/0.5408, allocations: 81.81 MB / 451 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.5412, allocations: 67.34 kB / 451.1 MB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09757/0.6388, allocations: 27.03 MB / 478.1 MB, free: 2.312 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.6389, allocations: 0 / 478.1 MB, free: 2.312 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.587e-05/0.6389, allocations: 4 kB / 478.1 MB, free: 2.309 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.0008434/0.6397, allocations: 0.6215 MB / 478.7 MB, free: 1.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.6398, allocations: 8.031 kB / 478.7 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.171e-05/0.6399, allocations: 42.56 kB / 478.8 MB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.832e-05/0.64, allocations: 35.62 kB / 478.8 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.6405, allocations: 253.5 kB / 479 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.6405, allocations: 4 kB / 479 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.797e-05/0.6406, allocations: 11.94 kB / 479.1 MB, free: 1.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.641, allocations: 153.5 kB / 479.2 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.641, allocations: 0 / 479.2 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.21e-05/0.6411, allocations: 4 kB / 479.2 MB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.6411, allocations: 7.984 kB / 479.2 MB, free: 1.051 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002208/0.6413, allocations: 63.97 kB / 479.3 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.6424, allocations: 492.4 kB / 479.8 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/0.6427, allocations: 94.56 kB / 479.9 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00024/0.643, allocations: 92.89 kB / 479.9 MB, free: 268 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.643, allocations: 4 kB / 479.9 MB, free: 264 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004955/0.6435, allocations: 222.7 kB / 480.2 MB, free: 16 kB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.946e-06/0.6435, allocations: 3.938 kB / 480.2 MB, free: 12 kB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.001109/0.6447, allocations: 435.9 kB / 480.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.6448, allocations: 166.3 kB / 480.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009731/0.6458, allocations: 470.4 kB / 481.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.9e-05/0.6459, allocations: 33.7 kB / 481.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.646, allocations: 163.6 kB / 481.4 MB, free: 14.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.397e-05/0.6461, allocations: 23.66 kB / 481.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.615e-05/0.6461, allocations: 8 kB / 481.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.6463, allocations: 318.8 kB / 481.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.6465, allocations: 59.98 kB / 481.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.6467, allocations: 63.97 kB / 481.9 MB, free: 14.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000274/0.647, allocations: 171.3 kB / 482 MB, free: 14.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.647, allocations: 3.953 kB / 482 MB, free: 14.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009785/0.648, allocations: 416.3 kB / 482.5 MB, free: 13.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001269/0.6482, allocations: 122.8 kB / 482.6 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.6482, allocations: 0 / 482.6 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.6482, allocations: 4 kB / 482.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.514e-05/0.6483, allocations: 0 / 482.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.6483, allocations: 3.938 kB / 482.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.6486, allocations: 15.98 kB / 482.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/0.6488, allocations: 119.7 kB / 482.7 MB, free: 13.3 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.0002767/0.6491, allocations: 241.5 kB / 482.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.6492, allocations: 47.48 kB / 483 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.6494, allocations: 67.42 kB / 483.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.77e-06/0.6494, allocations: 0 / 483.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.6495, allocations: 4 kB / 483.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.6495, allocations: 0 / 483.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/0.6512, allocations: 0.8369 MB / 483.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.6512, allocations: 0 / 483.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.765e-05/0.6512, allocations: 4 kB / 483.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.084e-06/0.6512, allocations: 0 / 483.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.6514, allocations: 19.98 kB / 483.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.6514, allocations: 4 kB / 483.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.6514, allocations: 3.984 kB / 483.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.6526, allocations: 0.5446 MB / 484.5 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006219/0.6532, allocations: 252.5 kB / 484.7 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.6533, allocations: 12.19 kB / 484.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.6536, allocations: 12 kB / 484.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.6538, allocations: 39.95 kB / 484.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002073/0.654, allocations: 123.8 kB / 484.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008063/0.6549, allocations: 384.9 kB / 485.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.765e-06/0.6549, allocations: 0 / 485.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004679/0.6554, allocations: 47.94 kB / 485.3 MB, free: 10.5 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.001581/0.657, allocations: 1.117 MB / 486.4 MB, free: 9.336 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008081/0.6578, allocations: 449.5 kB / 486.9 MB, free: 8.848 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.6578, allocations: 0 / 486.9 MB, free: 8.848 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005294/0.6584, allocations: 377.6 kB / 487.3 MB, free: 8.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008614/0.6593, allocations: 107.4 kB / 487.4 MB, free: 8.324 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/0.6613, allocations: 0.659 MB / 488 MB, free: 7.613 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006418/0.662, allocations: 0.8143 MB / 488.8 MB, free: 6.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.915e-05/0.6621, allocations: 23.44 kB / 488.9 MB, free: 6.746 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6621, allocations: 0 / 488.9 MB, free: 6.746 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.658/3.321, allocations: 4.316 MB / 493.2 MB, free: 2.383 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat