Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",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.002455/0.002455, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.5/2.5, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001101/0.001101, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.594e-05/3.617e-05, allocations: 11.98 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.426/0.5302, allocations: 81.79 MB / 451 MB, free: 11.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.5305, allocations: 70.88 kB / 451 MB, free: 11.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1023/0.6328, allocations: 27.85 MB / 478.9 MB, free: 1.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.6329, allocations: 0 / 478.9 MB, free: 1.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.6329, allocations: 8 kB / 478.9 MB, free: 1.363 MB / 346.7 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.000957/0.6339, allocations: 0.6852 MB / 479.6 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.137e-05/0.634, allocations: 8.031 kB / 479.6 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.967e-05/0.6341, allocations: 42.56 kB / 479.6 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.6342, allocations: 43.53 kB / 479.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005832/0.6348, allocations: 273.3 kB / 480 MB, free: 200 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.6349, allocations: 12 kB / 480 MB, free: 188 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.848e-05/0.635, allocations: 11.94 kB / 480 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004792/0.6354, allocations: 161.6 kB / 480.1 MB, free: 8 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.6355, allocations: 3.984 kB / 480.1 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.699e-05/0.6356, allocations: 8.047 kB / 480.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.6356, allocations: 0 / 480.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002532/0.6358, allocations: 75.94 kB / 480.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.6371, allocations: 0.5042 MB / 480.7 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.6375, allocations: 118.5 kB / 480.8 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.6378, allocations: 112.9 kB / 480.9 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.648e-06/0.6379, allocations: 4 kB / 481 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005159/0.6384, allocations: 242.6 kB / 481.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 4.238e-06/0.6384, allocations: 3.938 kB / 481.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.001238/0.6397, allocations: 0.4976 MB / 481.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/0.6398, allocations: 191.9 kB / 481.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0011/0.6409, allocations: 0.4949 MB / 482.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.175e-05/0.641, allocations: 29.7 kB / 482.4 MB, free: 13.56 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.6412, allocations: 179.5 kB / 482.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.544e-05/0.6413, allocations: 31.7 kB / 482.6 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-05/0.6413, allocations: 4 kB / 482.6 MB, free: 13.35 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.6415, allocations: 318.8 kB / 482.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.6417, allocations: 79.97 kB / 483 MB, free: 12.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.642, allocations: 79.98 kB / 483.1 MB, free: 12.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.6423, allocations: 212.5 kB / 483.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.6423, allocations: 0 / 483.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001053/0.6434, allocations: 473.9 kB / 483.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001521/0.6436, allocations: 156.6 kB / 483.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.6436, allocations: 3.938 kB / 483.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.6436, allocations: 0 / 483.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.606e-05/0.6436, allocations: 0 / 483.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.6437, allocations: 3.953 kB / 483.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.644, allocations: 19.98 kB / 483.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001722/0.6442, allocations: 93.31 kB / 484 MB, free: 11.83 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete 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.0002958/0.6445, allocations: 275.3 kB / 484.3 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.6446, allocations: 55.44 kB / 484.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002385/0.6449, allocations: 67.75 kB / 484.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.6449, allocations: 4 kB / 484.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.6449, allocations: 0 / 484.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.6449, allocations: 7.891 kB / 484.4 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.6467, allocations: 0.9323 MB / 485.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.6468, allocations: 0 / 485.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.407e-05/0.6468, allocations: 0 / 485.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/0.6468, allocations: 0 / 485.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.6469, allocations: 23.98 kB / 485.4 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.6469, allocations: 0 / 485.4 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.6469, allocations: 7.953 kB / 485.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.6482, allocations: 0.6322 MB / 486 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006395/0.6488, allocations: 252.4 kB / 486.3 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.649, allocations: 15.98 kB / 486.3 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003023/0.6493, allocations: 12 kB / 486.3 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.6495, allocations: 63.88 kB / 486.4 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001733/0.6497, allocations: 101.2 kB / 486.5 MB, free: 9.195 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009081/0.6507, allocations: 420.9 kB / 486.9 MB, free: 8.785 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6507, allocations: 0 / 486.9 MB, free: 8.785 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000476/0.6512, allocations: 51.94 kB / 486.9 MB, free: 8.734 MB / 362.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: 14 ($whenCondition1,$whenCondition2,Mux2x1.sel,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,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,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) * 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.001731/0.6529, allocations: 1.189 MB / 488.1 MB, free: 7.488 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009263/0.6539, allocations: 0.5205 MB / 488.6 MB, free: 6.906 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.6539, allocations: 0 / 488.6 MB, free: 6.906 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006067/0.6545, allocations: 461 kB / 489.1 MB, free: 6.395 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.6558, allocations: 155.6 kB / 489.2 MB, free: 6.246 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002304/0.6582, allocations: 0.7496 MB / 490 MB, free: 5.449 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007121/0.6589, allocations: 0.8342 MB / 490.8 MB, free: 4.586 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.6591, allocations: 39.42 kB / 490.8 MB, free: 4.547 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6591, allocations: 0 / 490.8 MB, free: 4.547 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.833/3.492, allocations: 4.991 MB / 495.8 MB, free: 15.44 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat