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.001565/0.001565, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.343/2.343, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 91.44 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.511e-05/2.522e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3477, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.4848, allocations: 81.15 MB / 443.6 MB, free: 5.066 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.4851, allocations: 72.67 kB / 443.7 MB, free: 4.996 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09489/0.58, allocations: 26.83 MB / 470.5 MB, free: 10.29 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5801, allocations: 0 / 470.5 MB, free: 10.29 MB / 363.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.5801, allocations: 4 kB / 470.5 MB, free: 10.29 MB / 363.1 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.0007838/0.5809, allocations: 0.6136 MB / 471.1 MB, free: 9.602 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.581, allocations: 8.031 kB / 471.1 MB, free: 9.594 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.5811, allocations: 39.62 kB / 471.1 MB, free: 9.555 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004354/0.5815, allocations: 260.5 kB / 471.4 MB, free: 9.258 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.5816, allocations: 4 kB / 471.4 MB, free: 9.254 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.11e-05/0.5817, allocations: 8 kB / 471.4 MB, free: 9.246 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002101/0.5819, allocations: 63.97 kB / 471.5 MB, free: 9.184 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.5822, allocations: 145.5 kB / 471.6 MB, free: 9.035 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.5823, allocations: 0 / 471.6 MB, free: 9.035 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.5823, allocations: 4 kB / 471.6 MB, free: 9.031 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.5823, allocations: 0 / 471.6 MB, free: 9.031 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009842/0.5833, allocations: 461 kB / 472.1 MB, free: 8.543 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.5836, allocations: 95.44 kB / 472.2 MB, free: 8.441 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.5838, allocations: 80.91 kB / 472.2 MB, free: 8.359 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.5838, allocations: 0 / 472.2 MB, free: 8.359 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003933/0.5842, allocations: 226.6 kB / 472.5 MB, free: 8.113 MB / 363.1 MB Notification: Performance of pre-optimization done (n=13): time 3.797e-06/0.5842, allocations: 3.984 kB / 472.5 MB, free: 8.109 MB / 363.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008982/0.5851, allocations: 305.2 kB / 472.8 MB, free: 7.805 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.5853, allocations: 166.2 kB / 472.9 MB, free: 7.605 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008264/0.5861, allocations: 452.8 kB / 473.4 MB, free: 7.16 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 5.02e-05/0.5862, allocations: 29.81 kB / 473.4 MB, free: 7.125 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.867e-05/0.5863, allocations: 167.8 kB / 473.6 MB, free: 6.961 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.428e-05/0.5863, allocations: 28.77 kB / 473.6 MB, free: 6.934 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.545e-05/0.5864, allocations: 12 kB / 473.6 MB, free: 6.922 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.5865, allocations: 318.8 kB / 473.9 MB, free: 6.602 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.5867, allocations: 55.98 kB / 474 MB, free: 6.547 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.5869, allocations: 59.97 kB / 474 MB, free: 6.488 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.587, allocations: 51.97 kB / 474.1 MB, free: 6.438 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5871, allocations: 0 / 474.1 MB, free: 6.438 MB / 363.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007406/0.5878, allocations: 281.3 kB / 474.4 MB, free: 6.156 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.5879, allocations: 122.8 kB / 474.5 MB, free: 6.012 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.5879, allocations: 0 / 474.5 MB, free: 6.012 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.588, allocations: 4 kB / 474.5 MB, free: 6.008 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.715e-05/0.588, allocations: 3.938 kB / 474.5 MB, free: 6.004 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.588, allocations: 5.969 kB / 474.5 MB, free: 6 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.5883, allocations: 11.98 kB / 474.5 MB, free: 5.988 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001968/0.5885, allocations: 123.7 kB / 474.6 MB, free: 5.867 MB / 363.1 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.000249/0.5887, allocations: 241.5 kB / 474.9 MB, free: 5.598 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008585/0.5896, allocations: 337.2 kB / 475.2 MB, free: 5.262 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.85e-05/0.5897, allocations: 35.62 kB / 475.2 MB, free: 5.227 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.5899, allocations: 67.44 kB / 475.3 MB, free: 5.156 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.5899, allocations: 0 / 475.3 MB, free: 5.156 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5899, allocations: 0 / 475.3 MB, free: 5.156 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.59, allocations: 4 kB / 475.3 MB, free: 5.152 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.5913, allocations: 0.6822 MB / 476 MB, free: 4.426 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.5914, allocations: 0 / 476 MB, free: 4.426 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-05/0.5914, allocations: 4 kB / 476 MB, free: 4.422 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.086e-05/0.5914, allocations: 3.984 kB / 476 MB, free: 4.418 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.466e-05/0.5915, allocations: 19.98 kB / 476 MB, free: 4.398 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.5915, allocations: 0 / 476 MB, free: 4.398 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5915, allocations: 4.188 kB / 476 MB, free: 4.395 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009094/0.5924, allocations: 431.1 kB / 476.4 MB, free: 3.957 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005596/0.593, allocations: 256.3 kB / 476.7 MB, free: 3.688 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.5931, allocations: 12 kB / 476.7 MB, free: 3.676 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.5934, allocations: 11.98 kB / 476.7 MB, free: 3.664 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.5936, allocations: 29 kB / 476.7 MB, free: 3.637 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001946/0.5938, allocations: 123.8 kB / 476.9 MB, free: 3.516 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0006773/0.5945, allocations: 378.7 kB / 477.2 MB, free: 3.148 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5945, allocations: 0 / 477.2 MB, free: 3.148 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.000444/0.595, allocations: 40 kB / 477.3 MB, free: 3.109 MB / 363.1 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.001295/0.5963, allocations: 0.9735 MB / 478.2 MB, free: 2.109 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0006734/0.597, allocations: 433.5 kB / 478.7 MB, free: 1.637 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.597, allocations: 0 / 478.7 MB, free: 1.637 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004584/0.5974, allocations: 369.6 kB / 479 MB, free: 1.227 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008231/0.5983, allocations: 108.1 kB / 479.1 MB, free: 1.121 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.6001, allocations: 0.648 MB / 479.8 MB, free: 440 kB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005996/0.6007, allocations: 0.8062 MB / 480.6 MB, free: 15.6 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.165e-05/0.6008, allocations: 35.36 kB / 480.6 MB, free: 15.56 MB / 379.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6008, allocations: 0 / 480.6 MB, free: 15.56 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.655/3.256, allocations: 4.328 MB / 484.9 MB, free: 11.21 MB / 379.1 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