Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_cpp_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.001576/0.001576, allocations: 186.9 kB / 16.41 MB, free: 5.723 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.961/1.961, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001111/0.001111, allocations: 92.64 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004177/0.0004177, allocations: 8 kB / 327.1 MB, free: 140 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3452, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.4808, allocations: 81.9 MB / 456.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002999/0.4811, allocations: 67.97 kB / 456.6 MB, free: 14.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09984/0.581, allocations: 27.65 MB / 484.2 MB, free: 3.117 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.581, allocations: 0 / 484.2 MB, free: 3.117 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.5811, allocations: 8 kB / 484.2 MB, free: 3.109 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.001018/0.5821, allocations: 0.7437 MB / 485 MB, free: 2.285 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.5822, allocations: 12.02 kB / 485 MB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.721e-05/0.5823, allocations: 42.56 kB / 485 MB, free: 2.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.5824, allocations: 43.44 kB / 485.1 MB, free: 2.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004448/0.5828, allocations: 269.4 kB / 485.4 MB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.5829, allocations: 15.94 kB / 485.4 MB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.525e-05/0.583, allocations: 12 kB / 485.4 MB, free: 1.848 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000519/0.5835, allocations: 169.5 kB / 485.5 MB, free: 1.676 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.5835, allocations: 0 / 485.5 MB, free: 1.676 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.239e-05/0.5836, allocations: 4 kB / 485.5 MB, free: 1.672 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.5836, allocations: 0 / 485.5 MB, free: 1.672 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000299/0.5839, allocations: 83.95 kB / 485.6 MB, free: 1.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.5851, allocations: 0.5004 MB / 486.1 MB, free: 1.039 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003661/0.5855, allocations: 122.5 kB / 486.3 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.5855, allocations: 4 kB / 486.3 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005342/0.586, allocations: 253.1 kB / 486.5 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.786e-06/0.5861, allocations: 0 / 486.5 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.001718/0.5878, allocations: 0.7462 MB / 487.2 MB, free: 15.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.588, allocations: 195.9 kB / 487.4 MB, free: 15.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.5891, allocations: 0.5008 MB / 487.9 MB, free: 15.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.588e-05/0.5892, allocations: 33.64 kB / 488 MB, free: 15.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.5893, allocations: 183.4 kB / 488.2 MB, free: 14.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.595e-05/0.5894, allocations: 31.61 kB / 488.2 MB, free: 14.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.25e-05/0.5895, allocations: 4 kB / 488.2 MB, free: 14.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.5896, allocations: 314.8 kB / 488.5 MB, free: 14.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002891/0.5899, allocations: 79.95 kB / 488.6 MB, free: 14.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.5902, allocations: 97.67 kB / 488.7 MB, free: 14.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003526/0.5906, allocations: 208.6 kB / 488.9 MB, free: 14.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.5906, allocations: 3.938 kB / 488.9 MB, free: 14.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00113/0.5918, allocations: 482.1 kB / 489.3 MB, free: 13.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001417/0.5919, allocations: 152.5 kB / 489.5 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.5919, allocations: 0 / 489.5 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.592, allocations: 0 / 489.5 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.335e-05/0.592, allocations: 0 / 489.5 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.592, allocations: 8.031 kB / 489.5 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.5923, allocations: 31.78 kB / 489.5 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/0.5925, allocations: 97.25 kB / 489.6 MB, free: 13.27 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.0007101/0.5932, allocations: 396.1 kB / 490 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.5934, allocations: 43.53 kB / 490.1 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001763/0.5935, allocations: 63.48 kB / 490.1 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.5936, allocations: 4 kB / 490.1 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.5936, allocations: 3.984 kB / 490.1 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.5936, allocations: 4 kB / 490.1 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.5954, allocations: 0.9361 MB / 491.1 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.5955, allocations: 0 / 491.1 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.545e-05/0.5955, allocations: 4 kB / 491.1 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.5955, allocations: 0 / 491.1 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-05/0.5956, allocations: 19.98 kB / 491.1 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.5956, allocations: 0 / 491.1 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.5956, allocations: 3.953 kB / 491.1 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.597, allocations: 0.6362 MB / 491.7 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005995/0.5976, allocations: 256.3 kB / 492 MB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.5977, allocations: 12 kB / 492 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002788/0.598, allocations: 15.98 kB / 492 MB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.5982, allocations: 51.94 kB / 492.1 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001925/0.5985, allocations: 113.1 kB / 492.2 MB, free: 10.53 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008872/0.5994, allocations: 422.8 kB / 492.6 MB, free: 10.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5994, allocations: 0 / 492.6 MB, free: 10.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004901/0.5999, allocations: 52 kB / 492.6 MB, free: 10.07 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.00182/0.6017, allocations: 1.197 MB / 493.8 MB, free: 8.809 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009741/0.6027, allocations: 0.536 MB / 494.4 MB, free: 8.211 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6028, allocations: 3.938 kB / 494.4 MB, free: 8.207 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006196/0.6034, allocations: 465 kB / 494.8 MB, free: 7.691 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.6046, allocations: 158.9 kB / 495 MB, free: 7.543 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004611/0.6092, allocations: 1.996 MB / 497 MB, free: 5.477 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006675/0.6099, allocations: 0.8263 MB / 497.8 MB, free: 4.625 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.325e-05/0.6101, allocations: 43.42 kB / 497.8 MB, free: 4.582 MB / 378.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6101, allocations: 0 / 497.8 MB, free: 4.582 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.855/3.465, allocations: 4.961 MB / 0.491 GB, free: 107.5 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat