Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009495/0.0009496, allocations: 100.6 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002183/0.0002183, allocations: 8 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1902, allocations: 51.46 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09039/0.2806, allocations: 83.61 MB / 493.1 MB, free: 6.996 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.2809, allocations: 68.66 kB / 493.2 MB, free: 6.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1998/0.4807, allocations: 27.23 MB / 0.5082 GB, free: 94.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4807, allocations: 4.594 kB / 0.5082 GB, free: 94.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.4807, allocations: 8.094 kB / 0.5082 GB, free: 94.35 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.0005856/0.4813, allocations: 0.6841 MB / 0.5089 GB, free: 93.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.4814, allocations: 9.625 kB / 0.5089 GB, free: 93.78 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.032e-05/0.4814, allocations: 38.25 kB / 0.5089 GB, free: 93.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.806e-05/0.4815, allocations: 38.78 kB / 0.509 GB, free: 93.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.4818, allocations: 260.9 kB / 0.5092 GB, free: 93.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.4818, allocations: 7.625 kB / 0.5092 GB, free: 93.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.4819, allocations: 11.28 kB / 0.5092 GB, free: 93.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.4821, allocations: 145 kB / 0.5094 GB, free: 93.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.4822, allocations: 4 kB / 0.5094 GB, free: 93.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.4822, allocations: 3.562 kB / 0.5094 GB, free: 93.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.4822, allocations: 1.5 kB / 0.5094 GB, free: 93.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.4823, allocations: 73.38 kB / 0.5094 GB, free: 93.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007123/0.4831, allocations: 478 kB / 0.5099 GB, free: 93.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.4833, allocations: 111 kB / 0.51 GB, free: 93.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.4833, allocations: 1 kB / 0.51 GB, free: 93.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003079/0.4836, allocations: 228.1 kB / 0.5102 GB, free: 93.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.4836, allocations: 0 / 0.5102 GB, free: 93.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009048/0.4845, allocations: 0.6575 MB / 0.5109 GB, free: 92.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.4846, allocations: 166.7 kB / 0.511 GB, free: 92.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005179/0.4851, allocations: 469 kB / 0.5115 GB, free: 92.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.4852, allocations: 33.89 kB / 0.5115 GB, free: 92.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.359e-05/0.4852, allocations: 103.2 kB / 0.5116 GB, free: 92.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.667e-05/0.4852, allocations: 24.94 kB / 0.5116 GB, free: 92.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/0.4853, allocations: 6.094 kB / 0.5116 GB, free: 92.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.177e-05/0.4853, allocations: 322.5 kB / 0.5119 GB, free: 91.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.4854, allocations: 64.5 kB / 0.512 GB, free: 91.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.4856, allocations: 79.56 kB / 0.5121 GB, free: 91.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.4857, allocations: 178.6 kB / 0.5123 GB, free: 91.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.4857, allocations: 0 / 0.5123 GB, free: 91.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004527/0.4862, allocations: 411.8 kB / 0.5126 GB, free: 91.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.589e-05/0.4862, allocations: 123.8 kB / 0.5128 GB, free: 91.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.4862, allocations: 0 / 0.5128 GB, free: 91.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.4863, allocations: 0 / 0.5128 GB, free: 91.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.638e-05/0.4863, allocations: 7.281 kB / 0.5128 GB, free: 91.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.4863, allocations: 3.953 kB / 0.5128 GB, free: 91.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.4864, allocations: 18.16 kB / 0.5128 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.47e-05/0.4865, allocations: 122.5 kB / 0.5129 GB, free: 91.39 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.0002507/0.4868, allocations: 356.6 kB / 0.5132 GB, free: 91.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.008e-05/0.4869, allocations: 36.44 kB / 0.5133 GB, free: 91.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.793e-05/0.487, allocations: 65.05 kB / 0.5133 GB, free: 91.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.487, allocations: 0 / 0.5133 GB, free: 91.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.487, allocations: 7.875 kB / 0.5134 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.487, allocations: 3.953 kB / 0.5134 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007625/0.4877, allocations: 0.8397 MB / 0.5142 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4878, allocations: 4 kB / 0.5142 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.669e-06/0.4878, allocations: 0 / 0.5142 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.4878, allocations: 0 / 0.5142 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.4878, allocations: 25.12 kB / 0.5142 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.4878, allocations: 0 / 0.5142 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4878, allocations: 3.953 kB / 0.5142 GB, free: 90.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005132/0.4883, allocations: 0.5568 MB / 0.5148 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.4886, allocations: 254.4 kB / 0.515 GB, free: 90.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.436e-05/0.4887, allocations: 15.56 kB / 0.515 GB, free: 90.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.4888, allocations: 11.66 kB / 0.515 GB, free: 90.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.125e-05/0.4889, allocations: 41.64 kB / 0.5151 GB, free: 90.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.317e-05/0.489, allocations: 128.3 kB / 0.5152 GB, free: 90.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003468/0.4894, allocations: 390 kB / 0.5156 GB, free: 89.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4894, allocations: 0 / 0.5156 GB, free: 89.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002705/0.4897, allocations: 42.22 kB / 0.5156 GB, free: 89.99 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.0006964/0.4904, allocations: 1.111 MB / 0.5167 GB, free: 89.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003945/0.4908, allocations: 450.8 kB / 0.5171 GB, free: 88.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4908, allocations: 0 / 0.5171 GB, free: 88.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.491, allocations: 384.9 kB / 0.5175 GB, free: 88.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.4915, allocations: 106.8 kB / 0.5176 GB, free: 88.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.4933, allocations: 1.634 MB / 0.5192 GB, free: 87.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.4936, allocations: 0.8071 MB / 0.52 GB, free: 86.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.597e-05/0.4936, allocations: 7.906 kB / 0.52 GB, free: 86.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.595e-05/0.4937, allocations: 26.12 kB / 0.52 GB, free: 86.65 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4937, allocations: 4 kB / 0.52 GB, free: 86.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01583/0.5095, allocations: 6.909 MB / 0.5267 GB, free: 82.88 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001104/0.5096, allocations: 170.4 kB / 0.5269 GB, free: 82.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.513/2.022, allocations: 0 / 0.5269 GB, free: 82.64 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat