Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_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.001234/0.001234, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008572/0.0008571, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.371e-05/3.373e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08662/0.08667, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2985/0.3852, allocations: 81.79 MB / 451.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.3854, allocations: 74.92 kB / 452 MB, free: 11.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05302/0.4385, allocations: 27.85 MB / 479.8 MB, free: 1.039 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4385, allocations: 0 / 479.8 MB, free: 1.039 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.4385, allocations: 4 kB / 479.8 MB, free: 1.035 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.00071/0.4392, allocations: 0.693 MB / 480.5 MB, free: 272 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.4393, allocations: 8.031 kB / 480.5 MB, free: 264 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.495e-05/0.4394, allocations: 42.56 kB / 480.6 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.835e-05/0.4394, allocations: 39.53 kB / 480.6 MB, free: 172 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.4399, allocations: 273.3 kB / 480.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.4399, allocations: 4 kB / 480.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.305e-05/0.44, allocations: 12 kB / 480.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003372/0.4403, allocations: 173.5 kB / 481.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.4403, allocations: 0 / 481.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.4404, allocations: 8 kB / 481.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.4404, allocations: 4 kB / 481.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000152/0.4405, allocations: 83.97 kB / 481.2 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007464/0.4413, allocations: 0.4925 MB / 481.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.4415, allocations: 126.5 kB / 481.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.4417, allocations: 108.9 kB / 481.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.4417, allocations: 0 / 481.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003066/0.442, allocations: 242.6 kB / 482.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.442, allocations: 0 / 482.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.000719/0.4427, allocations: 0.5054 MB / 482.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.4429, allocations: 187.9 kB / 482.8 MB, free: 13.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006121/0.4435, allocations: 0.5027 MB / 483.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/0.4435, allocations: 29.7 kB / 483.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.113e-05/0.4436, allocations: 113.1 kB / 483.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.346e-05/0.4437, allocations: 27.66 kB / 483.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.167e-05/0.4437, allocations: 7.984 kB / 483.5 MB, free: 13.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4438, allocations: 326.8 kB / 483.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.444, allocations: 79.98 kB / 483.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.4441, allocations: 79.97 kB / 484 MB, free: 12.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002007/0.4443, allocations: 208.6 kB / 484.2 MB, free: 12.35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4444, allocations: 4 kB / 484.2 MB, free: 12.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006227/0.445, allocations: 489.9 kB / 484.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.4451, allocations: 156.4 kB / 484.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.4451, allocations: 0 / 484.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.4451, allocations: 0 / 484.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.979e-05/0.4452, allocations: 0 / 484.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.4452, allocations: 7.953 kB / 484.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.4453, allocations: 19.89 kB / 484.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.4455, allocations: 101.5 kB / 484.9 MB, free: 11.52 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.0002008/0.4457, allocations: 271.2 kB / 485.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.547e-05/0.4457, allocations: 43.53 kB / 485.2 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.4459, allocations: 75.58 kB / 485.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.4459, allocations: 0 / 485.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.4459, allocations: 3.938 kB / 485.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.4459, allocations: 3.953 kB / 485.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.4469, allocations: 0.9206 MB / 486.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.4469, allocations: 4 kB / 486.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.591e-06/0.447, allocations: 4 kB / 486.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.447, allocations: 0 / 486.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.447, allocations: 23.98 kB / 486.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.447, allocations: 0 / 486.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.447, allocations: 3.953 kB / 486.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007735/0.4478, allocations: 0.636 MB / 486.9 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003404/0.4482, allocations: 256.4 kB / 487.2 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.236e-05/0.4482, allocations: 12 kB / 487.2 MB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.4484, allocations: 19.98 kB / 487.2 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.4486, allocations: 71.78 kB / 487.3 MB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.4487, allocations: 101.2 kB / 487.4 MB, free: 8.887 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004766/0.4492, allocations: 420.9 kB / 487.8 MB, free: 8.477 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4492, allocations: 0 / 487.8 MB, free: 8.477 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002765/0.4495, allocations: 52 kB / 487.8 MB, free: 8.426 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.0009906/0.4505, allocations: 1.181 MB / 489 MB, free: 7.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005283/0.451, allocations: 0.5283 MB / 489.5 MB, free: 6.598 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.451, allocations: 0 / 489.5 MB, free: 6.598 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003362/0.4514, allocations: 457 kB / 490 MB, free: 6.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000698/0.4521, allocations: 159.2 kB / 490.1 MB, free: 5.938 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.4533, allocations: 0.7011 MB / 490.8 MB, free: 5.195 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.4537, allocations: 0.8264 MB / 491.7 MB, free: 4.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.091e-05/0.4538, allocations: 9.094 kB / 491.7 MB, free: 4.332 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.688e-05/0.4538, allocations: 43.42 kB / 491.7 MB, free: 4.289 MB / 362.7 MB Notification: Performance of SimCode: time 7.92e-07/0.4539, allocations: 0 / 491.7 MB, free: 4.289 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.4753, allocations: 8.31 MB / 0.4883 GB, free: 11.8 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/0.4756, allocations: 141.2 kB / 0.4884 GB, free: 11.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.155, allocations: 0 / 0.4884 GB, free: 11.58 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat