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.001191/0.001191, allocations: 181 kB / 17.01 MB, free: 5.125 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.37/1.37, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.000872/0.0008719, allocations: 101.6 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002882/0.0002884, allocations: 8 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3124, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.4223, allocations: 81.9 MB / 457.8 MB, free: 14.76 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003649/0.4228, allocations: 71.95 kB / 457.9 MB, free: 14.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05645/0.4793, allocations: 27.64 MB / 485.5 MB, free: 3.121 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4793, allocations: 0 / 485.5 MB, free: 3.121 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.4793, allocations: 4 kB / 485.5 MB, free: 3.117 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.001053/0.4804, allocations: 0.7554 MB / 486.3 MB, free: 2.281 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.4805, allocations: 12.03 kB / 486.3 MB, free: 2.27 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.73e-05/0.4805, allocations: 38.56 kB / 486.3 MB, free: 2.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.4807, allocations: 43.44 kB / 486.4 MB, free: 2.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/0.4811, allocations: 273.4 kB / 486.6 MB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.4811, allocations: 7.938 kB / 486.6 MB, free: 1.863 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.022e-05/0.4812, allocations: 12 kB / 486.6 MB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003489/0.4815, allocations: 165.5 kB / 486.8 MB, free: 1.684 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4816, allocations: 0 / 486.8 MB, free: 1.684 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.4816, allocations: 8 kB / 486.8 MB, free: 1.676 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.4816, allocations: 3.984 kB / 486.8 MB, free: 1.672 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.4818, allocations: 87.95 kB / 486.9 MB, free: 1.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009131/0.4827, allocations: 0.4887 MB / 487.4 MB, free: 1.047 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.483, allocations: 130.5 kB / 487.5 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.483, allocations: 4 kB / 487.5 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003586/0.4833, allocations: 245.1 kB / 487.8 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.884e-06/0.4834, allocations: 0 / 487.8 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.001097/0.4845, allocations: 0.7462 MB / 488.5 MB, free: 15.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.4846, allocations: 195.9 kB / 488.7 MB, free: 15.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006893/0.4853, allocations: 0.5007 MB / 489.2 MB, free: 15.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.4853, allocations: 37.64 kB / 489.2 MB, free: 15.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.381e-05/0.4854, allocations: 117.1 kB / 489.4 MB, free: 14.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.664e-05/0.4855, allocations: 31.61 kB / 489.4 MB, free: 14.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.118e-05/0.4855, allocations: 8 kB / 489.4 MB, free: 14.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.4857, allocations: 322.8 kB / 489.7 MB, free: 14.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.4858, allocations: 83.95 kB / 489.8 MB, free: 14.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.486, allocations: 93.67 kB / 489.9 MB, free: 14.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.4862, allocations: 216.7 kB / 490.1 MB, free: 14.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.4863, allocations: 3.938 kB / 490.1 MB, free: 14.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006633/0.4869, allocations: 493.8 kB / 490.6 MB, free: 13.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.487, allocations: 152.5 kB / 490.7 MB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.4871, allocations: 4.062 kB / 490.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.4871, allocations: 0 / 490.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.847e-05/0.4871, allocations: 0 / 490.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.4871, allocations: 4 kB / 490.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.4873, allocations: 23.88 kB / 490.8 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.4874, allocations: 109.3 kB / 490.9 MB, free: 13.3 MB / 378.7 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.sel,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,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.0004199/0.4878, allocations: 396.1 kB / 491.3 MB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.455e-05/0.4879, allocations: 47.44 kB / 491.3 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.488, allocations: 67.48 kB / 491.4 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.4881, allocations: 3.984 kB / 491.4 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4881, allocations: 0 / 491.4 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.4881, allocations: 0 / 491.4 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.4893, allocations: 0.9322 MB / 492.3 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4893, allocations: 8 kB / 492.3 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.432e-06/0.4893, allocations: 0 / 492.3 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.4893, allocations: 0 / 492.3 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.4894, allocations: 19.98 kB / 492.3 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4894, allocations: 0 / 492.3 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.4894, allocations: 3.953 kB / 492.3 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008126/0.4902, allocations: 0.6323 MB / 493 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004056/0.4906, allocations: 252.4 kB / 493.2 MB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.146e-05/0.4907, allocations: 16 kB / 493.2 MB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.4909, allocations: 15.98 kB / 493.2 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.4911, allocations: 55.94 kB / 493.3 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.4912, allocations: 113.1 kB / 493.4 MB, free: 10.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005687/0.4918, allocations: 422.8 kB / 493.8 MB, free: 10.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4918, allocations: 0 / 493.8 MB, free: 10.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003175/0.4921, allocations: 48 kB / 493.9 MB, free: 10.1 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) * 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.001198/0.4933, allocations: 1.201 MB / 495.1 MB, free: 8.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006467/0.494, allocations: 0.5321 MB / 495.6 MB, free: 8.246 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.494, allocations: 0 / 495.6 MB, free: 8.246 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004107/0.4944, allocations: 465 kB / 496.1 MB, free: 7.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006702/0.4951, allocations: 159 kB / 496.2 MB, free: 7.582 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003063/0.4982, allocations: 1.947 MB / 498.2 MB, free: 5.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/0.4987, allocations: 0.8341 MB / 499 MB, free: 4.711 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.352e-05/0.4988, allocations: 16.47 kB / 499 MB, free: 4.695 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.696e-05/0.4989, allocations: 43.42 kB / 499.1 MB, free: 4.652 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4989, allocations: 0 / 499.1 MB, free: 4.652 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1982/0.6971, allocations: 8.26 MB / 0.4954 GB, free: 106.6 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001696/0.6973, allocations: 177.4 kB / 0.4956 GB, free: 106.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.578, allocations: 0 / 0.4956 GB, free: 106.4 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