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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 202.2 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 225.6 MB / 234.8 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008654/0.0008657, allocations: 97.11 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.206e-05/2.188e-05, allocations: 4 kB / 343.8 MB, free: 8.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.09659, allocations: 51.48 MB / 395.3 MB, free: 4.695 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.341/0.4376, allocations: 82.85 MB / 478.1 MB, free: 9.914 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.4379, allocations: 69.84 kB / 478.2 MB, free: 9.887 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05021/0.4881, allocations: 28.06 MB / 0.4944 GB, free: 3.699 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4881, allocations: 0 / 0.4944 GB, free: 3.699 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.4882, allocations: 4 kB / 0.4944 GB, free: 3.695 MB / 362.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.0007604/0.4889, allocations: 0.6889 MB / 0.4951 GB, free: 2.941 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.489, allocations: 8.031 kB / 0.4951 GB, free: 2.934 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.4891, allocations: 39.53 kB / 0.4951 GB, free: 2.895 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003417/0.4894, allocations: 275.5 kB / 0.4954 GB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.4895, allocations: 6.812 kB / 0.4954 GB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.4895, allocations: 19.98 kB / 0.4954 GB, free: 2.562 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001531/0.4897, allocations: 75.97 kB / 0.4955 GB, free: 2.488 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.4899, allocations: 157.5 kB / 0.4956 GB, free: 2.328 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.49, allocations: 0 / 0.4956 GB, free: 2.328 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.49, allocations: 4 kB / 0.4956 GB, free: 2.324 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.49, allocations: 4 kB / 0.4956 GB, free: 2.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007566/0.4908, allocations: 483.6 kB / 0.4961 GB, free: 1.836 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/0.491, allocations: 118.5 kB / 0.4962 GB, free: 1.711 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.4911, allocations: 100.9 kB / 0.4963 GB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-06/0.4911, allocations: 4 kB / 0.4963 GB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.4914, allocations: 238.2 kB / 0.4965 GB, free: 1.352 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.754e-06/0.4915, allocations: 0 / 0.4965 GB, free: 1.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.000606/0.4921, allocations: 349.2 kB / 0.4969 GB, free: 1.004 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.998e-05/0.4922, allocations: 199.8 kB / 0.4971 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005842/0.4928, allocations: 493.3 kB / 0.4975 GB, free: 284 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.4928, allocations: 29.7 kB / 0.4976 GB, free: 248 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.678e-05/0.4929, allocations: 113.4 kB / 0.4977 GB, free: 128 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.759e-05/0.4929, allocations: 31.7 kB / 0.4977 GB, free: 96 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.203e-05/0.493, allocations: 0 / 0.4977 GB, free: 96 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4931, allocations: 338.8 kB / 0.498 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.4932, allocations: 71.97 kB / 0.4981 GB, free: 15.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.4933, allocations: 75.98 kB / 0.4982 GB, free: 15.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.429e-05/0.4934, allocations: 61.94 kB / 0.4982 GB, free: 15.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4935, allocations: 0 / 0.4982 GB, free: 15.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004756/0.4939, allocations: 337.3 kB / 0.4985 GB, free: 15.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.484e-05/0.494, allocations: 148.5 kB / 0.4987 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.4941, allocations: 4 kB / 0.4987 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.4941, allocations: 0 / 0.4987 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.726e-05/0.4941, allocations: 1.688 kB / 0.4987 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.4941, allocations: 4 kB / 0.4987 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.4943, allocations: 15.98 kB / 0.4987 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.4944, allocations: 100.2 kB / 0.4988 GB, free: 14.92 MB / 378.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.0002219/0.4946, allocations: 275.5 kB / 0.4991 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005458/0.4952, allocations: 389 kB / 0.4994 GB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.42e-05/0.4952, allocations: 43.53 kB / 0.4995 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.4954, allocations: 67.77 kB / 0.4995 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.4954, allocations: 0 / 0.4995 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4954, allocations: 4 kB / 0.4995 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.4954, allocations: 3.953 kB / 0.4995 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008581/0.4962, allocations: 0.7369 MB / 0.5003 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.4963, allocations: 0 / 0.5003 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-06/0.4963, allocations: 0 / 0.5003 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.4963, allocations: 0 / 0.5003 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.4963, allocations: 23.98 kB / 0.5003 GB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.4963, allocations: 3.938 kB / 0.5003 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4963, allocations: 3.953 kB / 0.5003 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000575/0.4969, allocations: 479.6 kB / 0.5008 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003186/0.4973, allocations: 252.7 kB / 0.501 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.905e-05/0.4973, allocations: 12 kB / 0.501 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.4975, allocations: 19.98 kB / 0.501 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.4977, allocations: 55.92 kB / 0.5011 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.4978, allocations: 109.2 kB / 0.5012 GB, free: 12.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004509/0.4982, allocations: 402.7 kB / 0.5016 GB, free: 11.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4982, allocations: 1.781 kB / 0.5016 GB, free: 11.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003567/0.4986, allocations: 48 kB / 0.5016 GB, free: 11.92 MB / 378.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.0009169/0.4995, allocations: 1.023 MB / 0.5026 GB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005261/0.5001, allocations: 0.5088 MB / 0.5031 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5001, allocations: 4 kB / 0.5031 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003578/0.5005, allocations: 452.9 kB / 0.5035 GB, free: 9.797 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007211/0.5012, allocations: 162.1 kB / 0.5037 GB, free: 9.641 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.5024, allocations: 0.6845 MB / 0.5044 GB, free: 8.918 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005326/0.5029, allocations: 0.8339 MB / 0.5052 GB, free: 8.059 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.194e-05/0.503, allocations: 13.62 kB / 0.5052 GB, free: 8.047 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.005e-05/0.5031, allocations: 43.42 kB / 0.5052 GB, free: 8.004 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5031, allocations: 1.969 kB / 0.5052 GB, free: 8.004 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0269/0.53, allocations: 7.778 MB / 0.5128 GB, free: 136 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002495/0.5303, allocations: 125.5 kB / 0.513 GB, free: 15.95 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/2.264, allocations: 0 / 0.513 GB, free: 15.95 MB / 394.7 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