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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009388/0.0009389, allocations: 93.19 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000955/0.000955, allocations: 208.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002153/0.0002154, allocations: 4 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1175, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001611/0.1192, allocations: 1.214 MB / 359.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.1209, allocations: 0.8543 MB / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.42e-05/0.1209, allocations: 0 / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.631e-05/0.121, allocations: 3.938 kB / 360.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.267e-05/0.1211, allocations: 15.97 kB / 360.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.1214, allocations: 39.83 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.1215, allocations: 71.92 kB / 360.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.1216, allocations: 11.98 kB / 360.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003683/0.122, allocations: 295.4 kB / 360.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.1221, allocations: 67.83 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.1221, allocations: 4 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.582e-05/0.1222, allocations: 4 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.861e-05/0.1222, allocations: 59.77 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.564e-05/0.1223, allocations: 73.58 kB / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000253/0.1226, allocations: 287.3 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1226, allocations: 0 / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.145e-06/0.1226, allocations: 4 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1226, allocations: 0 / 361.2 MB, free: 10.78 MB / 302.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.0006643/0.1233, allocations: 0.653 MB / 361.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.1233, allocations: 12.03 kB / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.879e-05/0.1234, allocations: 38.56 kB / 361.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.208e-05/0.1235, allocations: 39.53 kB / 361.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.1238, allocations: 257.3 kB / 362.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.1238, allocations: 11.95 kB / 362.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/0.1238, allocations: 8 kB / 362.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.1241, allocations: 133.6 kB / 362.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1242, allocations: 0 / 362.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.1242, allocations: 4 kB / 362.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.1242, allocations: 3.938 kB / 362.3 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.1243, allocations: 59.91 kB / 362.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006426/0.125, allocations: 460.5 kB / 362.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.1252, allocations: 90.55 kB / 362.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-06/0.1252, allocations: 0 / 362.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003149/0.1255, allocations: 207.6 kB / 363.1 MB, free: 8.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.273e-06/0.1255, allocations: 0 / 363.1 MB, free: 8.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008152/0.1263, allocations: 0.6037 MB / 363.7 MB, free: 7.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.898e-05/0.1264, allocations: 166.2 kB / 363.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006091/0.1271, allocations: 0.5207 MB / 364.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.1271, allocations: 29.7 kB / 364.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.337e-05/0.1272, allocations: 105 kB / 364.5 MB, free: 7.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.1272, allocations: 27.64 kB / 364.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.606e-05/0.1272, allocations: 8 kB / 364.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1273, allocations: 326.8 kB / 364.9 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.1275, allocations: 51.97 kB / 364.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.1276, allocations: 81.67 kB / 365 MB, free: 6.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.1278, allocations: 166.4 kB / 365.2 MB, free: 6.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1278, allocations: 4 kB / 365.2 MB, free: 6.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004821/0.1283, allocations: 380.1 kB / 365.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.831e-05/0.1284, allocations: 122.8 kB / 365.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1284, allocations: 0 / 365.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.1284, allocations: 0 / 365.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.326e-05/0.1284, allocations: 4 kB / 365.7 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.1284, allocations: 8.031 kB / 365.7 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.1286, allocations: 11.98 kB / 365.7 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.563e-05/0.1287, allocations: 36 kB / 365.7 MB, free: 5.785 MB / 302.1 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.0003491/0.129, allocations: 370.3 kB / 366.1 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.511e-05/0.1291, allocations: 39.62 kB / 366.1 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.1292, allocations: 67.14 kB / 366.2 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1292, allocations: 0 / 366.2 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1292, allocations: 4 kB / 366.2 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1292, allocations: 4.109 kB / 366.2 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009261/0.1302, allocations: 0.8016 MB / 367 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1302, allocations: 0 / 367 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.648e-06/0.1302, allocations: 0 / 367 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1302, allocations: 0 / 367 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.727e-05/0.1302, allocations: 16 kB / 367 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.1303, allocations: 3.984 kB / 367 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1303, allocations: 7.922 kB / 367 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006186/0.1309, allocations: 0.5251 MB / 367.6 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003176/0.1312, allocations: 244.4 kB / 367.8 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.567e-05/0.1313, allocations: 12 kB / 367.8 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.1314, allocations: 15.92 kB / 367.8 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.1315, allocations: 23.97 kB / 367.9 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.698e-05/0.1316, allocations: 51.91 kB / 367.9 MB, free: 3.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000461/0.1321, allocations: 386.9 kB / 368.3 MB, free: 3.055 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.1321, allocations: 0 / 368.3 MB, free: 3.055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.1324, allocations: 44 kB / 368.3 MB, free: 3.012 MB / 302.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) * 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.0008963/0.1333, allocations: 1.081 MB / 369.4 MB, free: 1.879 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004823/0.1338, allocations: 433.5 kB / 369.8 MB, free: 1.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1338, allocations: 3.938 kB / 369.8 MB, free: 1.402 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002989/0.1341, allocations: 385.6 kB / 370.2 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005192/0.1346, allocations: 94.98 kB / 370.3 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1882/0.3228, allocations: 1.589 MB / 371.9 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.3233, allocations: 0.8097 MB / 372.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.3234, allocations: 11.52 kB / 372.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.774e-05/0.3235, allocations: 27.5 kB / 372.7 MB, free: 18.67 MB / 302.1 MB Notification: Performance of SimCode: time 1.532e-06/0.3235, allocations: 0 / 372.7 MB, free: 18.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.3426, allocations: 5.019 MB / 377.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/0.3428, allocations: 174.1 kB / 377.9 MB, free: 18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.128, allocations: 4 kB / 377.9 MB, free: 17.99 MB / 302.1 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