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.001569/0.001568, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001174/0.001173, allocations: 89.3 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.0003879, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.3614, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1312/0.4927, allocations: 81.91 MB / 456.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.493, allocations: 75.95 kB / 456.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09343/0.5865, allocations: 26.82 MB / 483.4 MB, free: 3.902 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5865, allocations: 0 / 483.4 MB, free: 3.902 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.5866, allocations: 4 kB / 483.4 MB, free: 3.898 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.0009169/0.5875, allocations: 0.6799 MB / 484.1 MB, free: 3.145 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.5875, allocations: 12.03 kB / 484.1 MB, free: 3.133 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.999e-05/0.5876, allocations: 42.56 kB / 484.2 MB, free: 3.082 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.5877, allocations: 31.62 kB / 484.2 MB, free: 3.051 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.5882, allocations: 257.5 kB / 484.5 MB, free: 2.762 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.5882, allocations: 12 kB / 484.5 MB, free: 2.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.816e-05/0.5883, allocations: 7.938 kB / 484.5 MB, free: 2.742 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004701/0.5887, allocations: 161.4 kB / 484.6 MB, free: 2.578 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.5888, allocations: 3.938 kB / 484.6 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.303e-05/0.5888, allocations: 8 kB / 484.6 MB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.5888, allocations: 0 / 484.6 MB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002595/0.5891, allocations: 67.95 kB / 484.7 MB, free: 2.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009663/0.5901, allocations: 480.4 kB / 485.2 MB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003159/0.5904, allocations: 102.5 kB / 485.3 MB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.5904, allocations: 0 / 485.3 MB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004777/0.5909, allocations: 230.7 kB / 485.5 MB, free: 1.621 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.813e-06/0.591, allocations: 0 / 485.5 MB, free: 1.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.001527/0.5925, allocations: 0.6582 MB / 486.2 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.5926, allocations: 166.2 kB / 486.3 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009073/0.5935, allocations: 464.5 kB / 486.8 MB, free: 240 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.5936, allocations: 33.7 kB / 486.8 MB, free: 200 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.289e-05/0.5937, allocations: 159.6 kB / 487 MB, free: 36 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.118e-05/0.5938, allocations: 27.66 kB / 487 MB, free: 8 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.493e-05/0.5938, allocations: 8 kB / 487 MB, free: 0 / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.594, allocations: 318.8 kB / 487.3 MB, free: 15.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.5943, allocations: 59.97 kB / 487.4 MB, free: 15.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.5946, allocations: 77.67 kB / 487.4 MB, free: 15.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.5949, allocations: 174.8 kB / 487.6 MB, free: 15.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.5949, allocations: 0 / 487.6 MB, free: 15.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001029/0.5959, allocations: 420.2 kB / 488 MB, free: 14.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.5961, allocations: 130.8 kB / 488.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.5961, allocations: 0 / 488.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.5961, allocations: 0 / 488.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.411e-05/0.5962, allocations: 4 kB / 488.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.5962, allocations: 0 / 488.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.5964, allocations: 12 kB / 488.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/0.5966, allocations: 119.8 kB / 488.3 MB, free: 14.62 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.000514/0.5971, allocations: 362.3 kB / 488.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.268e-05/0.5972, allocations: 47.48 kB / 488.7 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001559/0.5974, allocations: 71.12 kB / 488.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.5974, allocations: 0 / 488.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.5974, allocations: 0 / 488.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.5974, allocations: 0 / 488.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.599, allocations: 0.8368 MB / 489.6 MB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.5991, allocations: 0 / 489.6 MB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.426e-06/0.5991, allocations: 3.984 kB / 489.6 MB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.5991, allocations: 0 / 489.6 MB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.14e-05/0.5992, allocations: 23.98 kB / 489.6 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.5992, allocations: 3.938 kB / 489.6 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.5992, allocations: 192 / 489.6 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.6004, allocations: 0.5645 MB / 490.2 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005074/0.6009, allocations: 256.4 kB / 490.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.899e-05/0.601, allocations: 15.98 kB / 490.5 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.6013, allocations: 12 kB / 490.5 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.6014, allocations: 35.95 kB / 490.5 MB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001825/0.6016, allocations: 115.9 kB / 490.6 MB, free: 12.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007489/0.6024, allocations: 386.9 kB / 491 MB, free: 11.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6024, allocations: 0 / 491 MB, free: 11.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004057/0.6028, allocations: 44 kB / 491 MB, free: 11.7 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.001571/0.6044, allocations: 1.126 MB / 492.2 MB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008529/0.6053, allocations: 449.5 kB / 492.6 MB, free: 10.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.6053, allocations: 0 / 492.6 MB, free: 10.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005478/0.6059, allocations: 385.5 kB / 493 MB, free: 9.605 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007908/0.6067, allocations: 111.8 kB / 493.1 MB, free: 9.496 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003681/0.6104, allocations: 1.667 MB / 494.8 MB, free: 7.762 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006362/0.611, allocations: 0.8064 MB / 495.6 MB, free: 6.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.738e-05/0.6111, allocations: 23.44 kB / 495.6 MB, free: 6.906 MB / 378.7 MB Notification: Performance of SimCode: time 3.897e-06/0.6111, allocations: 0 / 495.6 MB, free: 6.906 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.581/3.192, allocations: 4.303 MB / 499.9 MB, free: 2.551 MB / 378.7 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