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.001284/0.001285, allocations: 177.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.601/1.601, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008106/0.0008106, allocations: 82.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.204e-05/2.207e-05, allocations: 7.984 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.0909, allocations: 47.59 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.33/0.4209, allocations: 81.38 MB / 444.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.4212, allocations: 69.16 kB / 444.6 MB, free: 13.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05272/0.4739, allocations: 27.65 MB / 472.3 MB, free: 7.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.474, allocations: 0 / 472.3 MB, free: 7.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.474, allocations: 4.75 kB / 472.3 MB, free: 7.766 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.0006878/0.4747, allocations: 0.6821 MB / 473 MB, free: 7.031 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.4747, allocations: 12.03 kB / 473 MB, free: 7.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.216e-05/0.4748, allocations: 39.53 kB / 473 MB, free: 6.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.4751, allocations: 286 kB / 473.3 MB, free: 6.668 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.4752, allocations: 4 kB / 473.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.194e-05/0.4752, allocations: 12 kB / 473.3 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001404/0.4754, allocations: 72.23 kB / 473.4 MB, free: 6.602 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.4756, allocations: 159.6 kB / 473.5 MB, free: 6.461 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.4756, allocations: 3.938 kB / 473.5 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.4757, allocations: 4 kB / 473.5 MB, free: 6.453 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.4757, allocations: 0 / 473.5 MB, free: 6.453 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006546/0.4763, allocations: 481.2 kB / 474 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001475/0.4765, allocations: 117.4 kB / 474.1 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.4766, allocations: 101.7 kB / 474.2 MB, free: 5.852 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.4766, allocations: 0 / 474.2 MB, free: 5.852 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000258/0.4769, allocations: 234.4 kB / 474.4 MB, free: 5.625 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.4769, allocations: 4 kB / 474.5 MB, free: 5.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005572/0.4775, allocations: 360.7 kB / 474.8 MB, free: 5.316 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.728e-05/0.4776, allocations: 195.2 kB / 475 MB, free: 5.086 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005246/0.4781, allocations: 487.4 kB / 475.5 MB, free: 4.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.4782, allocations: 33.2 kB / 475.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.105e-05/0.4782, allocations: 112.4 kB / 475.6 MB, free: 4.551 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.328e-05/0.4783, allocations: 34.03 kB / 475.6 MB, free: 4.523 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.198e-05/0.4783, allocations: 4 kB / 475.7 MB, free: 4.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4784, allocations: 333.3 kB / 476 MB, free: 4.191 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.4785, allocations: 79.53 kB / 476.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.645e-05/0.4786, allocations: 74.67 kB / 476.1 MB, free: 4.086 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.948e-05/0.4787, allocations: 57.77 kB / 476.2 MB, free: 4.043 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4788, allocations: 0 / 476.2 MB, free: 4.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004533/0.4792, allocations: 325.8 kB / 476.5 MB, free: 3.773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.4793, allocations: 155.2 kB / 476.7 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.4793, allocations: 3.938 kB / 476.7 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.4794, allocations: 0 / 476.7 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.108e-05/0.4794, allocations: 4 kB / 476.7 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.4794, allocations: 4 kB / 476.7 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.4796, allocations: 19.89 kB / 476.7 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.4797, allocations: 93.31 kB / 476.8 MB, free: 3.473 MB / 346.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.0002243/0.4799, allocations: 271.4 kB / 477 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005392/0.4805, allocations: 386.7 kB / 477.4 MB, free: 2.852 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.4805, allocations: 43.53 kB / 477.5 MB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.4807, allocations: 70.31 kB / 477.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.4807, allocations: 4 kB / 477.5 MB, free: 2.742 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4807, allocations: 7.938 kB / 477.5 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4807, allocations: 3.953 kB / 477.5 MB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008575/0.4816, allocations: 0.7372 MB / 478.3 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4816, allocations: 0 / 478.3 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.282e-06/0.4816, allocations: 0 / 478.3 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.4816, allocations: 0 / 478.3 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.009e-05/0.4816, allocations: 26.98 kB / 478.3 MB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4816, allocations: 0 / 478.3 MB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/0.4817, allocations: 3.953 kB / 478.3 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005442/0.4822, allocations: 484.1 kB / 478.8 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000334/0.4825, allocations: 259.1 kB / 479 MB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.665e-05/0.4826, allocations: 12 kB / 479 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.4828, allocations: 15.98 kB / 479.1 MB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.4829, allocations: 55.92 kB / 479.1 MB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.95e-05/0.4831, allocations: 109.1 kB / 479.2 MB, free: 1.164 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004356/0.4835, allocations: 402.6 kB / 479.6 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4835, allocations: 0 / 479.6 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002969/0.4838, allocations: 48 kB / 479.7 MB, free: 0.7266 MB / 346.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.0009207/0.4847, allocations: 1.028 MB / 480.7 MB, free: 15.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004814/0.4852, allocations: 0.5088 MB / 481.2 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4852, allocations: 4 kB / 481.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003159/0.4856, allocations: 449 kB / 481.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007149/0.4863, allocations: 162.4 kB / 481.8 MB, free: 14.44 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.4875, allocations: 0.6768 MB / 482.5 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.4879, allocations: 0.8343 MB / 483.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.07e-05/0.488, allocations: 16.53 kB / 483.3 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.347e-05/0.488, allocations: 39.42 kB / 483.4 MB, free: 12.81 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.488, allocations: 0 / 483.4 MB, free: 12.81 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.5165, allocations: 7.791 MB / 491.2 MB, free: 4.844 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003/0.5169, allocations: 129.3 kB / 491.3 MB, free: 4.652 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.626/2.143, allocations: 0 / 491.3 MB, free: 4.652 MB / 362.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