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.002407/0.002407, allocations: 188.2 kB / 16.4 MB, free: 5.621 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.171/2.171, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001246/0.001245, allocations: 94.92 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004043/0.0004046, allocations: 8 kB / 327 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1093, allocations: 47.59 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002075/0.1114, allocations: 1.2 MB / 375.8 MB, free: 14.12 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002727/0.1142, allocations: 0.8484 MB / 376.7 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.98e-05/0.1142, allocations: 0 / 376.7 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.409e-05/0.1143, allocations: 11.92 kB / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.1145, allocations: 15.97 kB / 376.7 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.1147, allocations: 39.83 kB / 376.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.1149, allocations: 71.91 kB / 376.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.115, allocations: 19.98 kB / 376.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005253/0.1156, allocations: 283.5 kB / 377.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.1157, allocations: 75.8 kB / 377.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.1158, allocations: 4 kB / 377.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.069e-05/0.1159, allocations: 4 kB / 377.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.116, allocations: 59.77 kB / 377.3 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.615e-05/0.1161, allocations: 77.52 kB / 377.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000381/0.1165, allocations: 279.4 kB / 377.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1165, allocations: 0 / 377.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1165, allocations: 3.938 kB / 377.6 MB, free: 12.33 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1165, allocations: 0 / 377.6 MB, free: 12.33 MB / 282.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.0008929/0.1174, allocations: 0.6569 MB / 378.3 MB, free: 11.6 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.1175, allocations: 8.031 kB / 378.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.822e-05/0.1176, allocations: 42.5 kB / 378.3 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.802e-05/0.1177, allocations: 43.47 kB / 378.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003936/0.1181, allocations: 261.3 kB / 378.6 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.1181, allocations: 4 kB / 378.6 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.1182, allocations: 12 kB / 378.6 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004317/0.1186, allocations: 133.6 kB / 378.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.1186, allocations: 0 / 378.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.1187, allocations: 4 kB / 378.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1187, allocations: 0 / 378.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002343/0.1189, allocations: 59.91 kB / 378.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009227/0.1199, allocations: 452.6 kB / 379.3 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000292/0.1202, allocations: 94.48 kB / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.1202, allocations: 4 kB / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004705/0.1207, allocations: 206.7 kB / 379.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.235e-06/0.1207, allocations: 0 / 379.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.001371/0.1221, allocations: 0.6039 MB / 380.2 MB, free: 9.492 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.1222, allocations: 178.1 kB / 380.3 MB, free: 9.281 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.1233, allocations: 0.5245 MB / 380.9 MB, free: 8.75 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.892e-05/0.1233, allocations: 29.7 kB / 380.9 MB, free: 8.715 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1234, allocations: 159.6 kB / 381.1 MB, free: 8.559 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.005e-05/0.1235, allocations: 35.62 kB / 381.1 MB, free: 8.523 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.508e-05/0.1235, allocations: 4 kB / 381.1 MB, free: 8.52 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1237, allocations: 314.8 kB / 381.4 MB, free: 8.203 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.1239, allocations: 55.97 kB / 381.5 MB, free: 8.148 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002296/0.1242, allocations: 77.67 kB / 381.5 MB, free: 8.066 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.1245, allocations: 162.8 kB / 381.7 MB, free: 7.883 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1245, allocations: 0 / 381.7 MB, free: 7.883 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008699/0.1254, allocations: 368.2 kB / 382 MB, free: 7.492 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.1255, allocations: 122.8 kB / 382.2 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1255, allocations: 0 / 382.2 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.1255, allocations: 4 kB / 382.2 MB, free: 7.344 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.359e-05/0.1256, allocations: 0 / 382.2 MB, free: 7.344 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.1256, allocations: 4.031 kB / 382.2 MB, free: 7.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.1259, allocations: 23.92 kB / 382.2 MB, free: 7.316 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.691e-05/0.126, allocations: 44.12 kB / 382.2 MB, free: 7.273 MB / 282.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.0005248/0.1265, allocations: 362.3 kB / 382.6 MB, free: 6.887 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-05/0.1266, allocations: 35.62 kB / 382.6 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001598/0.1268, allocations: 67.14 kB / 382.7 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.1268, allocations: 3.938 kB / 382.7 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1268, allocations: 0 / 382.7 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1268, allocations: 4 kB / 382.7 MB, free: 6.773 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.1284, allocations: 0.8133 MB / 383.5 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1284, allocations: 0 / 383.5 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.167e-05/0.1284, allocations: 3.938 kB / 383.5 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.1284, allocations: 0 / 383.5 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.366e-05/0.1285, allocations: 12 kB / 383.5 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1285, allocations: 0 / 383.5 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.1285, allocations: 4 kB / 383.5 MB, free: 5.859 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.1295, allocations: 0.5217 MB / 384.1 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005122/0.1301, allocations: 244.4 kB / 384.3 MB, free: 5.039 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.149e-05/0.1302, allocations: 12 kB / 384.3 MB, free: 5.027 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.1304, allocations: 15.98 kB / 384.3 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.1306, allocations: 19.97 kB / 384.3 MB, free: 4.992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.667e-05/0.1307, allocations: 51.91 kB / 384.4 MB, free: 4.941 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007578/0.1314, allocations: 386.9 kB / 384.8 MB, free: 4.566 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1315, allocations: 0 / 384.8 MB, free: 4.566 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000438/0.1319, allocations: 55.89 kB / 384.8 MB, free: 4.512 MB / 282.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.001502/0.1334, allocations: 1.078 MB / 385.9 MB, free: 3.383 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008275/0.1343, allocations: 433.7 kB / 386.3 MB, free: 2.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1343, allocations: 0 / 386.3 MB, free: 2.91 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005326/0.1348, allocations: 381.8 kB / 386.7 MB, free: 2.488 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007984/0.1356, allocations: 98.42 kB / 386.8 MB, free: 2.391 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003733/0.1394, allocations: 1.635 MB / 388.4 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2738/0.4133, allocations: 0.8083 MB / 389.2 MB, free: 20.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.831e-05/0.4134, allocations: 27.98 kB / 389.3 MB, free: 20.57 MB / 282.7 MB Notification: Performance of SimCode: time 1.633e-06/0.4134, allocations: 0 / 389.3 MB, free: 20.57 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.531/2.944, allocations: 2.933 MB / 392.2 MB, free: 20.42 MB / 282.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