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.001122/0.001122, allocations: 181.3 kB / 17.01 MB, free: 5.125 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.579/1.579, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0009186/0.0009187, allocations: 92.16 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003875, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.267, allocations: 47.58 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08977/0.3568, allocations: 81.9 MB / 457.8 MB, free: 14.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.3571, allocations: 67.97 kB / 457.9 MB, free: 14.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05239/0.4095, allocations: 26.83 MB / 484.7 MB, free: 3.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4096, allocations: 0 / 484.7 MB, free: 3.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.4096, allocations: 4 kB / 484.7 MB, free: 3.902 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.0007337/0.4104, allocations: 0.6799 MB / 485.4 MB, free: 3.148 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.4104, allocations: 12.03 kB / 485.4 MB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.298e-05/0.4105, allocations: 38.56 kB / 485.4 MB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.88e-05/0.4106, allocations: 31.62 kB / 485.5 MB, free: 3.059 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.4109, allocations: 269.4 kB / 485.7 MB, free: 2.758 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.411, allocations: 4 kB / 485.7 MB, free: 2.754 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.411, allocations: 8 kB / 485.7 MB, free: 2.746 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.4113, allocations: 161.4 kB / 485.9 MB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.4114, allocations: 7.938 kB / 485.9 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.4114, allocations: 8 kB / 485.9 MB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.4114, allocations: 0 / 485.9 MB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001571/0.4116, allocations: 63.95 kB / 486 MB, free: 2.504 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008015/0.4124, allocations: 476.5 kB / 486.4 MB, free: 1.988 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/0.4126, allocations: 106.5 kB / 486.5 MB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.4126, allocations: 0 / 486.5 MB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003269/0.4129, allocations: 230.7 kB / 486.8 MB, free: 1.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.964e-06/0.4129, allocations: 0 / 486.8 MB, free: 1.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.000949/0.4139, allocations: 0.6582 MB / 487.4 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.414, allocations: 166.2 kB / 487.6 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005855/0.4146, allocations: 460.5 kB / 488 MB, free: 248 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.4147, allocations: 37.7 kB / 488.1 MB, free: 204 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.478e-05/0.4147, allocations: 97.12 kB / 488.2 MB, free: 100 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.627e-05/0.4148, allocations: 23.72 kB / 488.2 MB, free: 76 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.409e-05/0.4148, allocations: 7.984 kB / 488.2 MB, free: 68 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.415, allocations: 326.7 kB / 488.5 MB, free: 15.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.4151, allocations: 67.95 kB / 488.6 MB, free: 15.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.4153, allocations: 79.92 kB / 488.7 MB, free: 15.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001887/0.4155, allocations: 174.8 kB / 488.8 MB, free: 15.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4155, allocations: 0 / 488.8 MB, free: 15.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000595/0.4161, allocations: 428.1 kB / 489.3 MB, free: 14.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.519e-05/0.4162, allocations: 122.8 kB / 489.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4162, allocations: 0 / 489.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.4162, allocations: 0 / 489.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.674e-05/0.4163, allocations: 7.984 kB / 489.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.4163, allocations: 0 / 489.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001417/0.4164, allocations: 8 kB / 489.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.4166, allocations: 127.9 kB / 489.5 MB, free: 14.66 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.0003288/0.4169, allocations: 358.3 kB / 489.9 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.283e-05/0.417, allocations: 43.48 kB / 489.9 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.933e-05/0.4171, allocations: 67.14 kB / 490 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.4171, allocations: 0 / 490 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4171, allocations: 0 / 490 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.4171, allocations: 3.984 kB / 490 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009611/0.4181, allocations: 0.8368 MB / 490.8 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4181, allocations: 4 kB / 490.8 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.262e-06/0.4181, allocations: 4 kB / 490.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.4181, allocations: 0 / 490.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.05e-05/0.4181, allocations: 23.98 kB / 490.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.4182, allocations: 3.984 kB / 490.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4182, allocations: 0 / 490.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007131/0.4189, allocations: 0.5569 MB / 491.4 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003564/0.4192, allocations: 260.3 kB / 491.7 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.642e-05/0.4193, allocations: 20.06 kB / 491.7 MB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.4195, allocations: 11.98 kB / 491.7 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.4196, allocations: 35.95 kB / 491.7 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.4197, allocations: 115.9 kB / 491.8 MB, free: 12.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004251/0.4201, allocations: 386.9 kB / 492.2 MB, free: 11.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4201, allocations: 0 / 492.2 MB, free: 11.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002913/0.4204, allocations: 48 kB / 492.3 MB, free: 11.74 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.0009569/0.4214, allocations: 1.118 MB / 493.4 MB, free: 10.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005212/0.4219, allocations: 449.5 kB / 493.8 MB, free: 10.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.422, allocations: 0 / 493.8 MB, free: 10.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003116/0.4223, allocations: 385.5 kB / 494.2 MB, free: 9.656 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004746/0.4228, allocations: 107.8 kB / 494.3 MB, free: 9.551 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.425, allocations: 1.618 MB / 495.9 MB, free: 7.871 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.4254, allocations: 0.8064 MB / 496.7 MB, free: 7.039 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.736e-05/0.4255, allocations: 16.58 kB / 496.7 MB, free: 7.023 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.482e-05/0.4255, allocations: 23.44 kB / 496.8 MB, free: 7 MB / 378.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4255, allocations: 4 kB / 496.8 MB, free: 6.996 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01727/0.4428, allocations: 6.898 MB / 0.4919 GB, free: 32 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.2089/0.6518, allocations: 167.4 kB / 0.492 GB, free: 111.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.628/2.279, allocations: 0 / 0.492 GB, free: 111.1 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