Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",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.001125/0.001125, allocations: 88.97 kB / 16.3 MB, free: 5.996 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.001549/0.001549, allocations: 186.9 kB / 17.2 MB, free: 5.91 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.447/1.447, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002936/0.0002939, allocations: 6.438 kB / 300.8 MB, free: 5.953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1218, allocations: 50.43 MB / 351.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001784/0.1237, allocations: 1.23 MB / 352.5 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.1255, allocations: 0.824 MB / 353.3 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.803e-05/0.1256, allocations: 4 kB / 353.3 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.668e-05/0.1257, allocations: 11.92 kB / 353.3 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.734e-05/0.1258, allocations: 15.97 kB / 353.3 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002699/0.126, allocations: 47.81 kB / 353.4 MB, free: 9.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.1262, allocations: 75.91 kB / 353.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.1263, allocations: 29.33 kB / 353.5 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005135/0.1268, allocations: 479.2 kB / 353.9 MB, free: 8.965 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.127, allocations: 103.8 kB / 354 MB, free: 8.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.127, allocations: 4 kB / 354 MB, free: 8.859 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.969e-05/0.1271, allocations: 4 kB / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.1272, allocations: 67.77 kB / 354.1 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.493e-05/0.1272, allocations: 77.52 kB / 354.2 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.1276, allocations: 375 kB / 354.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1276, allocations: 0 / 354.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1276, allocations: 0 / 354.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.1276, allocations: 0 / 354.6 MB, free: 8.34 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007098/0.1283, allocations: 0.7282 MB / 355.3 MB, free: 7.531 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.1284, allocations: 12.03 kB / 355.3 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.777e-05/0.1284, allocations: 46.48 kB / 355.3 MB, free: 7.465 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.913e-05/0.1285, allocations: 39.53 kB / 355.4 MB, free: 7.426 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/0.1289, allocations: 281.2 kB / 355.7 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.1289, allocations: 8 kB / 355.7 MB, free: 7.102 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.1289, allocations: 8 kB / 355.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.1293, allocations: 169.5 kB / 355.8 MB, free: 6.922 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.1293, allocations: 0 / 355.8 MB, free: 6.922 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.1293, allocations: 15.95 kB / 355.8 MB, free: 6.906 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1293, allocations: 4 kB / 355.9 MB, free: 6.902 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.1295, allocations: 79.95 kB / 355.9 MB, free: 6.824 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008011/0.1303, allocations: 0.4887 MB / 356.4 MB, free: 6.285 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002337/0.1306, allocations: 134.4 kB / 356.6 MB, free: 6.145 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.1306, allocations: 0 / 356.6 MB, free: 6.145 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003571/0.131, allocations: 242.7 kB / 356.8 MB, free: 5.883 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 3.206e-06/0.131, allocations: 3.984 kB / 356.8 MB, free: 5.879 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.001006/0.132, allocations: 0.7769 MB / 357.6 MB, free: 5.027 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.1321, allocations: 191.9 kB / 357.8 MB, free: 4.797 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006777/0.1328, allocations: 0.5601 MB / 358.3 MB, free: 4.227 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.519e-05/0.1328, allocations: 33.7 kB / 358.3 MB, free: 4.188 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.774e-05/0.1329, allocations: 121 kB / 358.5 MB, free: 4.066 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.865e-05/0.133, allocations: 31.73 kB / 358.5 MB, free: 4.035 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.985e-05/0.133, allocations: 4 kB / 358.5 MB, free: 4.031 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.1332, allocations: 330.8 kB / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.1333, allocations: 79.95 kB / 358.9 MB, free: 3.621 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.1335, allocations: 97.67 kB / 359 MB, free: 3.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.1337, allocations: 210.7 kB / 359.2 MB, free: 3.285 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1337, allocations: 3.938 kB / 359.2 MB, free: 3.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006306/0.1343, allocations: 0.5018 MB / 359.7 MB, free: 2.742 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.55e-05/0.1344, allocations: 156.5 kB / 359.9 MB, free: 2.559 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1345, allocations: 4.078 kB / 359.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.1345, allocations: 0 / 359.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.146e-05/0.1345, allocations: 0 / 359.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.1345, allocations: 3.984 kB / 359.9 MB, free: 2.551 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.1347, allocations: 23.92 kB / 359.9 MB, free: 2.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.1348, allocations: 97.34 kB / 360 MB, free: 2.43 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: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0004022/0.1352, allocations: 404 kB / 360.4 MB, free: 1.996 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.829e-05/0.1353, allocations: 51.39 kB / 360.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.1354, allocations: 63.48 kB / 360.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1354, allocations: 7.938 kB / 360.5 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.1354, allocations: 3.984 kB / 360.5 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1354, allocations: 0 / 360.5 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.1366, allocations: 0.9595 MB / 361.5 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1366, allocations: 0 / 361.5 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.138e-06/0.1366, allocations: 0 / 361.5 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1366, allocations: 0 / 361.5 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.386e-05/0.1366, allocations: 23.98 kB / 361.5 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.1367, allocations: 0 / 361.5 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1367, allocations: 0 / 361.5 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007477/0.1374, allocations: 0.6654 MB / 362.2 MB, free: 84 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003563/0.1378, allocations: 256.4 kB / 362.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.5e-05/0.1379, allocations: 16 kB / 362.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.138, allocations: 19.89 kB / 362.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.1382, allocations: 55.92 kB / 362.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.1383, allocations: 109.1 kB / 362.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000495/0.1388, allocations: 418.8 kB / 363 MB, free: 15.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1388, allocations: 0 / 363 MB, free: 15.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000305/0.1391, allocations: 48 kB / 363.1 MB, free: 15.16 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.001198/0.1403, allocations: 1.232 MB / 364.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006648/0.141, allocations: 0.5282 MB / 364.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.141, allocations: 0 / 364.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004111/0.1414, allocations: 465 kB / 365.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006919/0.1421, allocations: 161.5 kB / 365.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.1449, allocations: 1.944 MB / 367.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.1454, allocations: 0.8342 MB / 368.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.148e-05/0.1454, allocations: 12.86 kB / 368.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.029e-05/0.1455, allocations: 43.42 kB / 368.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1455, allocations: 0 / 368.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.1646, allocations: 8.226 MB / 376.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.1648, allocations: 177.4 kB / 376.7 MB, free: 1.223 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.069, allocations: 0 / 376.7 MB, free: 1.223 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat