Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.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.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",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.0009124/0.0009123, allocations: 177.1 kB / 8.35 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.369/1.369, allocations: 221.5 MB / 230.3 MB, free: 7.551 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.0008554/0.0008554, allocations: 90.14 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.544e-05/2.548e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1195, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4029/0.5225, allocations: 82.05 MB / 469.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.5228, allocations: 71.97 kB / 469.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05173/0.5745, allocations: 27.19 MB / 496.9 MB, free: 1.547 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.5746, allocations: 0 / 496.9 MB, free: 1.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.5746, allocations: 8 kB / 496.9 MB, free: 1.539 MB / 362.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.0006805/0.5753, allocations: 0.6175 MB / 497.5 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.5753, allocations: 8.031 kB / 497.5 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.923e-05/0.5754, allocations: 43.58 kB / 497.5 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003536/0.5758, allocations: 259.6 kB / 497.8 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.5758, allocations: 8 kB / 497.8 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.022e-05/0.5759, allocations: 4 kB / 497.8 MB, free: 0.4922 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001642/0.576, allocations: 63.97 kB / 497.9 MB, free: 440 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002247/0.5763, allocations: 137.6 kB / 498 MB, free: 296 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.5763, allocations: 0 / 498 MB, free: 296 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.5763, allocations: 0 / 498 MB, free: 296 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.5763, allocations: 4 kB / 498 MB, free: 292 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006444/0.577, allocations: 468.9 kB / 498.5 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.5771, allocations: 90.56 kB / 498.6 MB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.5772, allocations: 80.89 kB / 498.6 MB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.5773, allocations: 7.984 kB / 498.6 MB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002458/0.5775, allocations: 222.6 kB / 498.9 MB, free: 15.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.593e-06/0.5775, allocations: 0 / 498.9 MB, free: 15.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005525/0.5781, allocations: 313.3 kB / 499.2 MB, free: 15.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.959e-05/0.5782, allocations: 166.2 kB / 499.3 MB, free: 14.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004742/0.5787, allocations: 452.8 kB / 499.8 MB, free: 14.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.5787, allocations: 29.7 kB / 499.8 MB, free: 14.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.427e-05/0.5788, allocations: 97.44 kB / 499.9 MB, free: 14.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.336e-05/0.5788, allocations: 27.66 kB / 499.9 MB, free: 14.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.5788, allocations: 8 kB / 499.9 MB, free: 14.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.579, allocations: 322.8 kB / 0.4885 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.771e-05/0.5791, allocations: 59.97 kB / 0.4886 GB, free: 13.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.918e-05/0.5792, allocations: 59.98 kB / 0.4886 GB, free: 13.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.343e-05/0.5792, allocations: 52.95 kB / 0.4887 GB, free: 13.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.5792, allocations: 0 / 0.4887 GB, free: 13.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004098/0.5797, allocations: 285.3 kB / 0.489 GB, free: 13.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.455e-05/0.5797, allocations: 122.8 kB / 0.4891 GB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.5798, allocations: 3.984 kB / 0.4891 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.5798, allocations: 4 kB / 0.4891 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.69e-05/0.5798, allocations: 0 / 0.4891 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.5798, allocations: 7.953 kB / 0.4891 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.58, allocations: 11.94 kB / 0.4891 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.5801, allocations: 123.9 kB / 0.4892 GB, free: 13.16 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.0001721/0.5803, allocations: 237.5 kB / 0.4894 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004578/0.5807, allocations: 337.1 kB / 0.4898 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.784e-05/0.5808, allocations: 39.61 kB / 0.4898 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.623e-05/0.5809, allocations: 67.44 kB / 0.4899 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.5809, allocations: 3.953 kB / 0.4899 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.5809, allocations: 0 / 0.4899 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.5809, allocations: 0 / 0.4899 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008101/0.5817, allocations: 0.6784 MB / 0.4905 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.5818, allocations: 0 / 0.4905 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.669e-06/0.5818, allocations: 0 / 0.4905 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5818, allocations: 0 / 0.4905 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.661e-05/0.5818, allocations: 23.94 kB / 0.4906 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5818, allocations: 192 / 0.4906 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5818, allocations: 4 kB / 0.4906 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004978/0.5823, allocations: 435 kB / 0.491 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.5826, allocations: 252.4 kB / 0.4912 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.204e-05/0.5827, allocations: 12 kB / 0.4912 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.5829, allocations: 19.8 kB / 0.4912 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.583, allocations: 35.95 kB / 0.4913 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.957e-05/0.5831, allocations: 119.8 kB / 0.4914 GB, free: 10.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000378/0.5835, allocations: 374.7 kB / 0.4917 GB, free: 10.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5835, allocations: 0 / 0.4917 GB, free: 10.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002845/0.5838, allocations: 44 kB / 0.4918 GB, free: 10.4 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.0007627/0.5845, allocations: 0.9618 MB / 0.4927 GB, free: 9.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004234/0.585, allocations: 437.5 kB / 0.4931 GB, free: 8.934 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.585, allocations: 0 / 0.4931 GB, free: 8.934 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000257/0.5853, allocations: 377.6 kB / 0.4935 GB, free: 8.516 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005492/0.5858, allocations: 110 kB / 0.4936 GB, free: 8.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.5869, allocations: 0.5983 MB / 0.4942 GB, free: 7.773 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004049/0.5873, allocations: 0.8101 MB / 0.495 GB, free: 6.938 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.274e-05/0.5873, allocations: 16.64 kB / 0.495 GB, free: 6.922 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.5874, allocations: 23.44 kB / 0.495 GB, free: 6.898 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5874, allocations: 0 / 0.495 GB, free: 6.898 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02297/0.6104, allocations: 6.47 MB / 0.5013 GB, free: 388 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/0.6106, allocations: 135.9 kB / 0.5015 GB, free: 184 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/2.169, allocations: 0 / 0.5015 GB, free: 184 kB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat