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.00118/0.00118, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008859/0.0008859, allocations: 94.61 kB / 291.5 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002447/0.0002448, allocations: 8 kB / 351.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2654, allocations: 50.42 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09652/0.362, allocations: 82.79 MB / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.3622, allocations: 71.97 kB / 484.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05216/0.4144, allocations: 27.18 MB / 0.4996 GB, free: 2.543 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.078e-06/0.4144, allocations: 0 / 0.4996 GB, free: 2.543 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.4145, allocations: 7.938 kB / 0.4996 GB, free: 2.535 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.0006392/0.4151, allocations: 0.676 MB / 0.5003 GB, free: 1.785 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.4151, allocations: 8.031 kB / 0.5003 GB, free: 1.777 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.347e-05/0.4152, allocations: 34.56 kB / 0.5003 GB, free: 1.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.799e-05/0.4153, allocations: 47.58 kB / 0.5004 GB, free: 1.688 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.4156, allocations: 265.4 kB / 0.5006 GB, free: 1.391 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.4156, allocations: 4 kB / 0.5006 GB, free: 1.387 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.4157, allocations: 8 kB / 0.5006 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003204/0.416, allocations: 149.5 kB / 0.5008 GB, free: 1.227 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.416, allocations: 0 / 0.5008 GB, free: 1.227 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.4161, allocations: 8 kB / 0.5008 GB, free: 1.219 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.4161, allocations: 4 kB / 0.5008 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.4162, allocations: 67.91 kB / 0.5009 GB, free: 1.148 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007659/0.417, allocations: 484.5 kB / 0.5013 GB, free: 0.625 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.4172, allocations: 98.55 kB / 0.5014 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-06/0.4172, allocations: 0 / 0.5014 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003044/0.4175, allocations: 230.6 kB / 0.5016 GB, free: 276 kB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.372e-06/0.4175, allocations: 0 / 0.5016 GB, free: 276 kB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.1924/0.61, allocations: 0.6533 MB / 0.5023 GB, free: 97.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/0.6101, allocations: 167 kB / 0.5024 GB, free: 97.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008462/0.611, allocations: 465.1 kB / 0.5029 GB, free: 97.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.661e-05/0.611, allocations: 31.06 kB / 0.5029 GB, free: 97.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.019e-05/0.6111, allocations: 99.16 kB / 0.503 GB, free: 96.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.507e-05/0.6111, allocations: 27.39 kB / 0.503 GB, free: 96.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/0.6112, allocations: 3.5 kB / 0.503 GB, free: 96.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.058e-05/0.6112, allocations: 325.4 kB / 0.5033 GB, free: 96.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.6115, allocations: 66.98 kB / 0.5034 GB, free: 96.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.6117, allocations: 85.02 kB / 0.5035 GB, free: 96.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.6119, allocations: 178.3 kB / 0.5037 GB, free: 96.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.6119, allocations: 1.188 kB / 0.5037 GB, free: 96.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007803/0.6127, allocations: 415.6 kB / 0.5041 GB, free: 96.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.675e-05/0.6128, allocations: 127.7 kB / 0.5042 GB, free: 96.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.6128, allocations: 0.9062 kB / 0.5042 GB, free: 96.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.6128, allocations: 4.406 kB / 0.5042 GB, free: 96.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.595e-05/0.6128, allocations: 3.484 kB / 0.5042 GB, free: 96.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.796e-05/0.6129, allocations: 0 / 0.5042 GB, free: 96.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.6131, allocations: 16.55 kB / 0.5042 GB, free: 96.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001859/0.6133, allocations: 115.2 kB / 0.5043 GB, free: 96.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,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: 0 () * Number of clocked 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.0004053/0.6137, allocations: 358 kB / 0.5047 GB, free: 95.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.6138, allocations: 36.84 kB / 0.5047 GB, free: 95.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.6139, allocations: 66.69 kB / 0.5048 GB, free: 95.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.614, allocations: 5.5 kB / 0.5048 GB, free: 95.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.614, allocations: 0 / 0.5048 GB, free: 95.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.614, allocations: 2.094 kB / 0.5048 GB, free: 95.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.6151, allocations: 0.8466 MB / 0.5056 GB, free: 95.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.6151, allocations: 0 / 0.5056 GB, free: 95.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.889e-06/0.6151, allocations: 1.891 kB / 0.5056 GB, free: 95.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.6151, allocations: 9.875 kB / 0.5056 GB, free: 95.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.223e-05/0.6151, allocations: 19.78 kB / 0.5056 GB, free: 95.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.6152, allocations: 4.188 kB / 0.5056 GB, free: 95.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.6152, allocations: 0 / 0.5056 GB, free: 95.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007472/0.6159, allocations: 0.5533 MB / 0.5062 GB, free: 95.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003756/0.6163, allocations: 253.1 kB / 0.5064 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.564e-05/0.6164, allocations: 14.52 kB / 0.5064 GB, free: 95.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.6165, allocations: 15.66 kB / 0.5064 GB, free: 95.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.6167, allocations: 33.25 kB / 0.5065 GB, free: 95.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.6168, allocations: 125.8 kB / 0.5066 GB, free: 95.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004652/0.6173, allocations: 388.2 kB / 0.507 GB, free: 94.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6173, allocations: 0 / 0.507 GB, free: 94.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003462/0.6176, allocations: 42 kB / 0.507 GB, free: 94.89 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) * Number of clocked states: 0 () * 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.001025/0.6187, allocations: 1.118 MB / 0.5081 GB, free: 94.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004425/0.6191, allocations: 457.2 kB / 0.5085 GB, free: 93.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.6191, allocations: 0 / 0.5085 GB, free: 93.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002416/0.6194, allocations: 381.6 kB / 0.5089 GB, free: 93.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004819/0.6199, allocations: 108.2 kB / 0.509 GB, free: 93.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.622, allocations: 1.624 MB / 0.5106 GB, free: 92.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.6223, allocations: 0.8135 MB / 0.5114 GB, free: 92.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.429e-05/0.6224, allocations: 11.83 kB / 0.5114 GB, free: 92.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.015e-05/0.6225, allocations: 26.47 kB / 0.5114 GB, free: 92.01 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.6225, allocations: 0 / 0.5114 GB, free: 92.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01684/0.6393, allocations: 6.895 MB / 0.5181 GB, free: 91.34 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001636/0.6395, allocations: 170.5 kB / 0.5183 GB, free: 91.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/2.211, allocations: 0 / 0.5183 GB, free: 91.1 MB / 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