Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001209/0.001209, allocations: 98.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 206.9 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.41/1.41, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002726/0.0002726, allocations: 12 kB / 306.7 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1213, allocations: 51.49 MB / 358.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00182/0.1232, allocations: 1.241 MB / 359.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.125, allocations: 0.866 MB / 360.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.379e-05/0.125, allocations: 0 / 360.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.004e-05/0.1251, allocations: 11.92 kB / 360.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.813e-05/0.1252, allocations: 15.97 kB / 360.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.1254, allocations: 43.81 kB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.1256, allocations: 83.86 kB / 360.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.792e-05/0.1257, allocations: 25.38 kB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004919/0.1262, allocations: 475.2 kB / 360.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.1263, allocations: 99.81 kB / 361 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.1264, allocations: 4 kB / 361 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.254e-05/0.1264, allocations: 4 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.898e-05/0.1265, allocations: 71.77 kB / 361.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.48e-05/0.1266, allocations: 77.45 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.1269, allocations: 375.1 kB / 361.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.127, allocations: 0 / 361.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.127, allocations: 3.938 kB / 361.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.127, allocations: 0 / 361.6 MB, free: 10.62 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007455/0.1277, allocations: 0.7362 MB / 362.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.1278, allocations: 12.03 kB / 362.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.687e-05/0.1278, allocations: 34.56 kB / 362.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.513e-05/0.1279, allocations: 43.44 kB / 362.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003744/0.1283, allocations: 281.3 kB / 362.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.1284, allocations: 12 kB / 362.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.637e-05/0.1284, allocations: 8 kB / 362.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003755/0.1288, allocations: 173.5 kB / 362.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1288, allocations: 0 / 362.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.1288, allocations: 7.938 kB / 362.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.1288, allocations: 4 kB / 362.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.129, allocations: 79.95 kB / 362.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000827/0.1299, allocations: 0.5004 MB / 363.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.1301, allocations: 122.5 kB / 363.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-06/0.1301, allocations: 0 / 363.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003604/0.1304, allocations: 246.6 kB / 363.8 MB, free: 8.156 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.1305, allocations: 0 / 363.8 MB, free: 8.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001036/0.1315, allocations: 0.7768 MB / 364.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.1316, allocations: 195.9 kB / 364.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006476/0.1323, allocations: 0.5601 MB / 365.3 MB, free: 6.508 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.391e-05/0.1323, allocations: 29.7 kB / 365.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.1324, allocations: 121 kB / 365.5 MB, free: 6.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.175e-05/0.1325, allocations: 27.66 kB / 365.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.091e-05/0.1325, allocations: 4 kB / 365.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1326, allocations: 334.8 kB / 365.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.1328, allocations: 79.97 kB / 365.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.133, allocations: 101.7 kB / 366 MB, free: 5.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.1332, allocations: 208.6 kB / 366.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1332, allocations: 0 / 366.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006657/0.1338, allocations: 0.504 MB / 366.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.568e-05/0.134, allocations: 148.5 kB / 366.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.134, allocations: 4 kB / 366.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.134, allocations: 3.984 kB / 366.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.038e-05/0.134, allocations: 4.031 kB / 366.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.134, allocations: 0 / 366.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.1342, allocations: 23.91 kB / 366.9 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.1343, allocations: 97.34 kB / 367 MB, free: 4.723 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: 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.0003877/0.1347, allocations: 411.9 kB / 367.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.616e-05/0.1348, allocations: 47.59 kB / 367.4 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.1349, allocations: 67.48 kB / 367.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1349, allocations: 8 kB / 367.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.1349, allocations: 0 / 367.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1349, allocations: 0 / 367.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.136, allocations: 0.9556 MB / 368.5 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1361, allocations: 0 / 368.5 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-06/0.1361, allocations: 0 / 368.5 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1361, allocations: 0 / 368.5 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.528e-05/0.1361, allocations: 19.98 kB / 368.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1361, allocations: 0 / 368.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1361, allocations: 3.984 kB / 368.5 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007648/0.1369, allocations: 0.675 MB / 369.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003527/0.1373, allocations: 260.2 kB / 369.4 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.491e-05/0.1373, allocations: 8 kB / 369.4 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.1375, allocations: 15.98 kB / 369.5 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.1377, allocations: 59.92 kB / 369.5 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.461e-05/0.1378, allocations: 105.2 kB / 369.6 MB, free: 1.902 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004893/0.1383, allocations: 422.8 kB / 370 MB, free: 1.492 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1383, allocations: 0 / 370 MB, free: 1.492 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.1386, allocations: 48 kB / 370.1 MB, free: 1.445 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.001109/0.1397, allocations: 1.216 MB / 371.3 MB, free: 176 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1908/0.3305, allocations: 0.5287 MB / 371.8 MB, free: 19.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.3306, allocations: 3.031 kB / 371.8 MB, free: 19.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005381/0.3311, allocations: 465.4 kB / 372.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009403/0.3321, allocations: 154.2 kB / 372.4 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003198/0.3353, allocations: 1.948 MB / 374.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.3357, allocations: 0.8273 MB / 375.2 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.3358, allocations: 16.52 kB / 375.2 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.424e-05/0.3359, allocations: 40.75 kB / 375.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3359, allocations: 0 / 375.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.3622, allocations: 8.228 MB / 383.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.3625, allocations: 177.3 kB / 383.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.182, allocations: 1.125 kB / 383.7 MB, free: 15.29 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat