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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009996/0.0009998, allocations: 86.95 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008898/0.0008898, allocations: 180.2 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 223.2 MB / 241.2 MB, free: 5.281 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003033, allocations: 6.281 kB / 300.9 MB, free: 5.535 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 50.42 MB / 351.3 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001598/0.1054, allocations: 1.25 MB / 352.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.107, allocations: 0.823 MB / 353.4 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.295e-05/0.1071, allocations: 4 kB / 353.4 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.42e-05/0.1072, allocations: 7.922 kB / 353.4 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.522e-05/0.1072, allocations: 15.91 kB / 353.4 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002303/0.1075, allocations: 43.91 kB / 353.5 MB, free: 9.191 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.1076, allocations: 123.7 kB / 353.6 MB, free: 9.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.735e-05/0.1077, allocations: 29.38 kB / 353.6 MB, free: 9.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006357/0.1084, allocations: 0.5538 MB / 354.2 MB, free: 8.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.1085, allocations: 103.7 kB / 354.3 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.673e-05/0.1086, allocations: 4 kB / 354.3 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.181e-05/0.1086, allocations: 8 kB / 354.3 MB, free: 8.367 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.519e-05/0.1087, allocations: 67.77 kB / 354.4 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.287e-05/0.1088, allocations: 81.45 kB / 354.4 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002996/0.1091, allocations: 367.1 kB / 354.8 MB, free: 7.855 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1091, allocations: 0 / 354.8 MB, free: 7.855 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.1091, allocations: 4 kB / 354.8 MB, free: 7.852 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1091, allocations: 0 / 354.8 MB, free: 7.852 MB / 286.1 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.0006805/0.1098, allocations: 0.7282 MB / 355.5 MB, free: 7.043 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1099, allocations: 8.031 kB / 355.5 MB, free: 7.035 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.139e-05/0.1099, allocations: 42.56 kB / 355.6 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.583e-05/0.11, allocations: 39.53 kB / 355.6 MB, free: 6.945 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.1103, allocations: 281.2 kB / 355.9 MB, free: 6.629 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.1103, allocations: 4 kB / 355.9 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.1103, allocations: 15.94 kB / 355.9 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.1107, allocations: 173.5 kB / 356.1 MB, free: 6.434 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.1107, allocations: 0 / 356.1 MB, free: 6.434 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/0.1107, allocations: 7.953 kB / 356.1 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1107, allocations: 0 / 356.1 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.1109, allocations: 83.95 kB / 356.2 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006659/0.1116, allocations: 0.5043 MB / 356.7 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.1118, allocations: 118.5 kB / 356.8 MB, free: 5.664 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.112, allocations: 112.9 kB / 356.9 MB, free: 5.551 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.794e-06/0.112, allocations: 3.984 kB / 356.9 MB, free: 5.547 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003781/0.1124, allocations: 246.6 kB / 357.1 MB, free: 5.281 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.1124, allocations: 0 / 357.1 MB, free: 5.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.000924/0.1133, allocations: 0.6177 MB / 357.8 MB, free: 4.629 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.1135, allocations: 191.9 kB / 357.9 MB, free: 4.398 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007214/0.1142, allocations: 0.5679 MB / 358.5 MB, free: 3.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.1142, allocations: 29.7 kB / 358.5 MB, free: 3.785 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.206e-05/0.1143, allocations: 125 kB / 358.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/0.1144, allocations: 31.78 kB / 358.7 MB, free: 3.629 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/0.1144, allocations: 4 kB / 358.7 MB, free: 3.625 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1145, allocations: 330.8 kB / 359 MB, free: 3.293 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.1147, allocations: 83.95 kB / 359.1 MB, free: 3.211 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.1149, allocations: 100.3 kB / 359.2 MB, free: 3.109 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.1151, allocations: 208.5 kB / 359.4 MB, free: 2.875 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.1151, allocations: 0 / 359.4 MB, free: 2.875 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006625/0.1158, allocations: 0.5017 MB / 359.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.1159, allocations: 156.5 kB / 360.1 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.1159, allocations: 4 kB / 360.1 MB, free: 2.148 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.1159, allocations: 0 / 360.1 MB, free: 2.148 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.99e-05/0.1159, allocations: 8.094 kB / 360.1 MB, free: 2.141 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.116, allocations: 0 / 360.1 MB, free: 2.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.1161, allocations: 16 kB / 360.1 MB, free: 2.125 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.1163, allocations: 105.3 kB / 360.2 MB, free: 2.02 MB / 286.1 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.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,Select.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.0003923/0.1167, allocations: 396 kB / 360.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.348e-05/0.1167, allocations: 51.39 kB / 360.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.814e-05/0.1168, allocations: 63.48 kB / 360.7 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1168, allocations: 4 kB / 360.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1168, allocations: 4 kB / 360.7 MB, free: 1.469 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1169, allocations: 3.984 kB / 360.7 MB, free: 1.465 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.118, allocations: 0.9595 MB / 361.7 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.118, allocations: 0 / 361.7 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.167e-06/0.118, allocations: 0 / 361.7 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.118, allocations: 0 / 361.7 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/0.118, allocations: 23.98 kB / 361.7 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.118, allocations: 0 / 361.7 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.118, allocations: 0 / 361.7 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007645/0.1188, allocations: 0.6673 MB / 362.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003108/0.1191, allocations: 248.4 kB / 362.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.112e-05/0.1192, allocations: 15.94 kB / 362.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1194, allocations: 19.89 kB / 362.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.1195, allocations: 59.92 kB / 362.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.1196, allocations: 101.2 kB / 362.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005014/0.1201, allocations: 418.8 kB / 363.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1202, allocations: 4 kB / 363.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.1205, allocations: 48 kB / 363.2 MB, free: 14.77 MB / 302.1 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.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,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,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.001112/0.1216, allocations: 1.234 MB / 364.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005918/0.1222, allocations: 0.5322 MB / 365 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1222, allocations: 4.062 kB / 365 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003858/0.1226, allocations: 468.9 kB / 365.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007382/0.1233, allocations: 157.5 kB / 365.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.1261, allocations: 1.918 MB / 367.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.1265, allocations: 0.8185 MB / 368.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.066e-05/0.1266, allocations: 12.86 kB / 368.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.377e-05/0.1267, allocations: 43.42 kB / 368.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1267, allocations: 0 / 368.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01856/0.1452, allocations: 8.243 MB / 376.7 MB, free: 1.094 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/0.1455, allocations: 184.3 kB / 376.8 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.991/2.136, allocations: 0 / 376.8 MB, free: 0.8516 MB / 302.1 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