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.00109/0.00109, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008433/0.0008432, allocations: 90.22 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.633e-05/1.636e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.33/0.4319, allocations: 81.38 MB / 444.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.4322, allocations: 64.78 kB / 444.6 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05144/0.4836, allocations: 26.83 MB / 471.4 MB, free: 8.656 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.4837, allocations: 4 kB / 471.4 MB, free: 8.652 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.4837, allocations: 7.938 kB / 471.4 MB, free: 8.645 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.0006571/0.4843, allocations: 0.6193 MB / 472.1 MB, free: 7.977 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.4844, allocations: 12.03 kB / 472.1 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.79e-05/0.4845, allocations: 31.62 kB / 472.1 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.4848, allocations: 254.3 kB / 472.4 MB, free: 7.648 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.4849, allocations: 4 kB / 472.4 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.274e-05/0.4849, allocations: 8 kB / 472.4 MB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001468/0.4851, allocations: 66.47 kB / 472.4 MB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.4853, allocations: 148 kB / 472.6 MB, free: 7.457 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.4853, allocations: 0 / 472.6 MB, free: 7.457 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/0.4854, allocations: 4 kB / 472.6 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.4854, allocations: 0 / 472.6 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007918/0.4862, allocations: 451.2 kB / 473 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.4863, allocations: 98.58 kB / 473.1 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.4865, allocations: 92.27 kB / 473.2 MB, free: 6.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.773e-06/0.4865, allocations: 0 / 473.2 MB, free: 6.891 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002781/0.4868, allocations: 211.8 kB / 473.4 MB, free: 6.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.4868, allocations: 0 / 473.4 MB, free: 6.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005736/0.4874, allocations: 310.7 kB / 473.7 MB, free: 6.418 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.4875, allocations: 173.8 kB / 473.9 MB, free: 6.215 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005611/0.488, allocations: 448.8 kB / 474.3 MB, free: 5.844 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/0.4881, allocations: 33.64 kB / 474.4 MB, free: 5.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.101e-05/0.4882, allocations: 103.6 kB / 474.5 MB, free: 5.711 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.137e-05/0.4882, allocations: 23.09 kB / 474.5 MB, free: 5.691 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-05/0.4883, allocations: 3.312 kB / 474.5 MB, free: 5.691 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.4884, allocations: 321.8 kB / 474.8 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.467e-05/0.4885, allocations: 64.34 kB / 474.9 MB, free: 5.328 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.913e-05/0.4886, allocations: 54.36 kB / 474.9 MB, free: 5.293 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.331e-05/0.4887, allocations: 56.64 kB / 475 MB, free: 5.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4887, allocations: 0 / 475 MB, free: 5.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004395/0.4891, allocations: 290.2 kB / 475.3 MB, free: 5.008 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.762e-05/0.4892, allocations: 122 kB / 475.4 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.4893, allocations: 80 / 475.4 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.4893, allocations: 7.984 kB / 475.4 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.224e-05/0.4893, allocations: 0 / 475.4 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.4893, allocations: 3.984 kB / 475.4 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.4895, allocations: 8 kB / 475.4 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/0.4896, allocations: 123.7 kB / 475.5 MB, free: 4.727 MB / 346.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.0002237/0.4898, allocations: 253.5 kB / 475.8 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004883/0.4903, allocations: 332.8 kB / 476.1 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.033e-05/0.4904, allocations: 35.62 kB / 476.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.4905, allocations: 69.02 kB / 476.2 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.4906, allocations: 11.88 kB / 476.2 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.4906, allocations: 0 / 476.2 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.4906, allocations: 0 / 476.2 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007931/0.4914, allocations: 0.6712 MB / 476.9 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4914, allocations: 0 / 476.9 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.37e-06/0.4914, allocations: 0 / 476.9 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4914, allocations: 0 / 476.9 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/0.4914, allocations: 23.42 kB / 476.9 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.4914, allocations: 0 / 476.9 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.4915, allocations: 8.172 kB / 476.9 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005332/0.492, allocations: 435.7 kB / 477.3 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003222/0.4923, allocations: 255.5 kB / 477.6 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.096e-05/0.4924, allocations: 8 kB / 477.6 MB, free: 2.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.4926, allocations: 19.03 kB / 477.6 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.4927, allocations: 34.45 kB / 477.6 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.4928, allocations: 119.8 kB / 477.8 MB, free: 2.633 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004224/0.4933, allocations: 376.7 kB / 478.1 MB, free: 2.328 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4933, allocations: 0 / 478.1 MB, free: 2.328 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002821/0.4936, allocations: 40 kB / 478.2 MB, free: 2.289 MB / 346.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.0009218/0.4945, allocations: 0.9728 MB / 479.1 MB, free: 1.324 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004918/0.495, allocations: 433.5 kB / 479.6 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.495, allocations: 0 / 479.6 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003002/0.4953, allocations: 373.6 kB / 479.9 MB, free: 448 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005369/0.4959, allocations: 100.1 kB / 480 MB, free: 348 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.497, allocations: 0.608 MB / 480.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.4974, allocations: 0.81 MB / 481.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.809e-05/0.4975, allocations: 16.62 kB / 481.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.4975, allocations: 23.44 kB / 481.5 MB, free: 14.82 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4975, allocations: 0 / 481.5 MB, free: 14.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0295/0.5271, allocations: 6.47 MB / 488 MB, free: 8.281 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002758/0.5274, allocations: 136 kB / 488.1 MB, free: 8.082 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/2.096, allocations: 0 / 488.1 MB, free: 8.082 MB / 362.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