Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008428/0.000843, allocations: 86.5 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 180.2 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.3 MB / 241.2 MB, free: 5.199 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002469/0.0002469, allocations: 6.031 kB / 300.9 MB, free: 5.504 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1082, allocations: 50.43 MB / 351.3 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001691/0.1099, allocations: 1.198 MB / 352.5 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.1115, allocations: 0.8202 MB / 353.4 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.278e-05/0.1116, allocations: 0 / 353.4 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.016e-05/0.1117, allocations: 7.922 kB / 353.4 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.886e-05/0.1118, allocations: 15.92 kB / 353.4 MB, free: 9.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000239/0.112, allocations: 39.89 kB / 353.4 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.1121, allocations: 103.8 kB / 353.5 MB, free: 9.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.858e-05/0.1122, allocations: 19.97 kB / 353.5 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004431/0.1127, allocations: 343.4 kB / 353.9 MB, free: 8.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.1128, allocations: 67.77 kB / 353.9 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.104e-05/0.1128, allocations: 4 kB / 354 MB, free: 8.641 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.254e-05/0.1129, allocations: 8 kB / 354 MB, free: 8.633 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.132e-05/0.113, allocations: 59.83 kB / 354 MB, free: 8.574 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.424e-05/0.1131, allocations: 73.52 kB / 354.1 MB, free: 8.496 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.1133, allocations: 279.3 kB / 354.4 MB, free: 8.223 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1133, allocations: 0 / 354.4 MB, free: 8.223 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1133, allocations: 4 kB / 354.4 MB, free: 8.219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1134, allocations: 0 / 354.4 MB, free: 8.219 MB / 286.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.0006238/0.114, allocations: 0.6565 MB / 355 MB, free: 7.488 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.114, allocations: 12.03 kB / 355 MB, free: 7.477 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.306e-05/0.1141, allocations: 34.56 kB / 355.1 MB, free: 7.434 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.155e-05/0.1141, allocations: 51.52 kB / 355.1 MB, free: 7.383 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.1144, allocations: 249.3 kB / 355.4 MB, free: 7.098 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.898e-05/0.1145, allocations: 12 kB / 355.4 MB, free: 7.086 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.446e-05/0.1145, allocations: 8 kB / 355.4 MB, free: 7.078 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.1148, allocations: 129.5 kB / 355.5 MB, free: 6.945 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.1148, allocations: 0 / 355.5 MB, free: 6.945 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.1148, allocations: 7.953 kB / 355.5 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.1148, allocations: 0 / 355.5 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.115, allocations: 55.97 kB / 355.6 MB, free: 6.883 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005943/0.1156, allocations: 460.5 kB / 356 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.1157, allocations: 98.5 kB / 356.1 MB, free: 6.277 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.1159, allocations: 80.89 kB / 356.2 MB, free: 6.195 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.1159, allocations: 0 / 356.2 MB, free: 6.195 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/0.1162, allocations: 209.9 kB / 356.4 MB, free: 5.969 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.323e-06/0.1162, allocations: 0 / 356.4 MB, free: 5.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007198/0.117, allocations: 460 kB / 356.8 MB, free: 5.488 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/0.1171, allocations: 170.2 kB / 357 MB, free: 5.285 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000584/0.1177, allocations: 0.5167 MB / 357.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.1177, allocations: 33.7 kB / 357.6 MB, free: 4.723 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.005e-05/0.1178, allocations: 97.12 kB / 357.7 MB, free: 4.625 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.1178, allocations: 31.66 kB / 357.7 MB, free: 4.594 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.341e-05/0.1178, allocations: 0 / 357.7 MB, free: 4.594 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.1179, allocations: 326.8 kB / 358 MB, free: 4.266 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.1181, allocations: 55.97 kB / 358.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.1182, allocations: 71.94 kB / 358.1 MB, free: 4.137 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.1184, allocations: 162.8 kB / 358.3 MB, free: 3.953 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1184, allocations: 0 / 358.3 MB, free: 3.953 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005087/0.1189, allocations: 388.4 kB / 358.7 MB, free: 3.543 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.755e-05/0.119, allocations: 129.1 kB / 358.8 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.119, allocations: 4 kB / 358.8 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.119, allocations: 0 / 358.8 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.2e-05/0.119, allocations: 4 kB / 358.8 MB, free: 3.387 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.1191, allocations: 4.062 kB / 358.8 MB, free: 3.383 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.1192, allocations: 15.94 kB / 358.8 MB, free: 3.367 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.828e-05/0.1193, allocations: 43.98 kB / 358.9 MB, free: 3.324 MB / 286.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.0003193/0.1196, allocations: 366.3 kB / 359.2 MB, free: 2.934 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.34e-05/0.1197, allocations: 43.52 kB / 359.3 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.1198, allocations: 63.16 kB / 359.3 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.1198, allocations: 0 / 359.3 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1198, allocations: 3.938 kB / 359.3 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1198, allocations: 0 / 359.3 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000907/0.1207, allocations: 0.8083 MB / 360.1 MB, free: 1.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1207, allocations: 0 / 360.1 MB, free: 1.93 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.633e-06/0.1207, allocations: 4 kB / 360.1 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1207, allocations: 0 / 360.1 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.551e-05/0.1208, allocations: 15.98 kB / 360.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1208, allocations: 0 / 360.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1208, allocations: 0 / 360.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006311/0.1214, allocations: 0.5252 MB / 360.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002784/0.1217, allocations: 248.4 kB / 360.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.006e-05/0.1218, allocations: 8 kB / 360.9 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.1219, allocations: 15.98 kB / 361 MB, free: 1.059 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.122, allocations: 27.97 kB / 361 MB, free: 1.031 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.361e-05/0.1221, allocations: 43.94 kB / 361 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004271/0.1225, allocations: 390.8 kB / 361.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1225, allocations: 0 / 361.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002809/0.1228, allocations: 44 kB / 361.4 MB, free: 0.5625 MB / 286.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.001002/0.1238, allocations: 1.089 MB / 362.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004889/0.1243, allocations: 433.5 kB / 363 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1243, allocations: 0 / 363 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.1246, allocations: 373.6 kB / 363.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000574/0.1252, allocations: 116.9 kB / 363.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.1275, allocations: 1.549 MB / 365 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.128, allocations: 0.8025 MB / 365.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.024e-05/0.128, allocations: 12.64 kB / 365.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.775e-05/0.1281, allocations: 27.42 kB / 365.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1281, allocations: 0 / 365.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01447/0.1426, allocations: 5.025 MB / 370.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001599/0.1428, allocations: 174.9 kB / 371 MB, free: 6.824 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/2.018, allocations: 4.062 kB / 371 MB, free: 6.82 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat