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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008361/0.000836, allocations: 95.67 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.865e-05/1.857e-05, allocations: 4 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09849, allocations: 50.41 MB / 387.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.335/0.4336, allocations: 82.04 MB / 469.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001892/0.4338, allocations: 63.97 kB / 469.7 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06547/0.4993, allocations: 28.02 MB / 497.7 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4993, allocations: 4 kB / 497.7 MB, free: 0.832 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.4994, allocations: 4 kB / 497.7 MB, free: 0.8281 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.0009068/0.5003, allocations: 0.6814 MB / 498.4 MB, free: 72 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.5003, allocations: 8.781 kB / 498.4 MB, free: 64 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.5005, allocations: 43.53 kB / 498.4 MB, free: 20 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004652/0.501, allocations: 275.5 kB / 498.7 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.501, allocations: 4 kB / 498.7 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.082e-05/0.5011, allocations: 8 kB / 498.7 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002393/0.5013, allocations: 79.92 kB / 498.8 MB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003839/0.5017, allocations: 161.5 kB / 498.9 MB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.5018, allocations: 3.938 kB / 498.9 MB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.079e-05/0.5018, allocations: 7.984 kB / 498.9 MB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.5018, allocations: 4 kB / 498.9 MB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.5029, allocations: 473 kB / 499.4 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002529/0.5031, allocations: 118.5 kB / 499.5 MB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002322/0.5034, allocations: 104.9 kB / 499.6 MB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.5034, allocations: 7.938 kB / 499.6 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004293/0.5039, allocations: 230.7 kB / 499.9 MB, free: 14.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 3.016e-06/0.5039, allocations: 0 / 499.9 MB, free: 14.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.000974/0.5049, allocations: 353.1 kB / 0.4885 GB, free: 14.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.505, allocations: 195.9 kB / 0.4887 GB, free: 13.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000941/0.506, allocations: 488.9 kB / 0.4891 GB, free: 13.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.89e-05/0.5061, allocations: 29.7 kB / 0.4892 GB, free: 13.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.5062, allocations: 125.4 kB / 0.4893 GB, free: 13.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.869e-05/0.5063, allocations: 27.66 kB / 0.4893 GB, free: 13.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.5063, allocations: 0 / 0.4893 GB, free: 13.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.5065, allocations: 334.8 kB / 0.4896 GB, free: 12.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.5067, allocations: 71.98 kB / 0.4897 GB, free: 12.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/0.5069, allocations: 83.95 kB / 0.4898 GB, free: 12.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.5071, allocations: 57.8 kB / 0.4898 GB, free: 12.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5071, allocations: 4 kB / 0.4898 GB, free: 12.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008715/0.508, allocations: 333.3 kB / 0.4902 GB, free: 12.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.967e-05/0.5081, allocations: 144.5 kB / 0.4903 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.5081, allocations: 0 / 0.4903 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.5082, allocations: 4 kB / 0.4903 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.931e-05/0.5082, allocations: 0 / 0.4903 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.5082, allocations: 3.984 kB / 0.4903 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.5084, allocations: 23.98 kB / 0.4903 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.5085, allocations: 109.2 kB / 0.4904 GB, free: 12 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.000182/0.5087, allocations: 267.2 kB / 0.4907 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005302/0.5092, allocations: 381 kB / 0.491 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.971e-05/0.5093, allocations: 47.52 kB / 0.4911 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001205/0.5094, allocations: 71.75 kB / 0.4912 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.5094, allocations: 0 / 0.4912 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.5094, allocations: 0 / 0.4912 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.5095, allocations: 0 / 0.4912 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008624/0.5103, allocations: 0.7448 MB / 0.4919 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.5103, allocations: 0 / 0.4919 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-06/0.5103, allocations: 0 / 0.4919 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.5104, allocations: 3.984 kB / 0.4919 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.5104, allocations: 16 kB / 0.4919 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.5104, allocations: 3.984 kB / 0.4919 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.5104, allocations: 7.922 kB / 0.4919 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005374/0.511, allocations: 487.1 kB / 0.4924 GB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003023/0.5113, allocations: 260.4 kB / 0.4926 GB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.746e-05/0.5113, allocations: 12 kB / 0.4926 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.5115, allocations: 16.23 kB / 0.4927 GB, free: 9.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.5117, allocations: 51.94 kB / 0.4927 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/0.5118, allocations: 101.2 kB / 0.4928 GB, free: 9.441 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000416/0.5122, allocations: 402.6 kB / 0.4932 GB, free: 9.051 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5122, allocations: 0 / 0.4932 GB, free: 9.051 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002886/0.5125, allocations: 48 kB / 0.4932 GB, free: 9.004 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.0008695/0.5134, allocations: 1.032 MB / 0.4942 GB, free: 7.945 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004869/0.5139, allocations: 0.5088 MB / 0.4947 GB, free: 7.375 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5139, allocations: 0 / 0.4947 GB, free: 7.375 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003284/0.5142, allocations: 453 kB / 0.4952 GB, free: 6.871 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007379/0.515, allocations: 159.5 kB / 0.4953 GB, free: 6.719 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.5162, allocations: 0.6846 MB / 0.496 GB, free: 5.996 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.5166, allocations: 0.83 MB / 0.4968 GB, free: 5.141 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.232e-05/0.5167, allocations: 16.47 kB / 0.4968 GB, free: 5.125 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.116e-05/0.5168, allocations: 43.36 kB / 0.4969 GB, free: 5.082 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5168, allocations: 4 kB / 0.4969 GB, free: 5.078 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/0.5426, allocations: 7.78 MB / 0.5045 GB, free: 13.17 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/0.5429, allocations: 133.3 kB / 0.5046 GB, free: 12.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.199, allocations: 0 / 0.5046 GB, free: 12.98 MB / 394.7 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