Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008692/0.0008691, allocations: 86.92 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1898/0.1898, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.525e-05, allocations: 4 kB / 460.5 MB, free: 69.95 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1245, allocations: 63.24 MB / 0.5114 GB, free: 6.719 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.394/0.5185, allocations: 86.98 MB / 0.5964 GB, free: 6.863 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001576/0.5187, allocations: 62.72 kB / 0.5964 GB, free: 6.832 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003172/0.5219, allocations: 1.498 MB / 0.5979 GB, free: 5.484 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5219, allocations: 0 / 0.5979 GB, free: 5.484 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.5219, allocations: 8 kB / 0.5979 GB, free: 5.477 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0003909/0.5223, allocations: 401.6 kB / 0.5983 GB, free: 5.047 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.5224, allocations: 11.97 kB / 0.5983 GB, free: 5.035 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.109e-05/0.5225, allocations: 67.72 kB / 0.5984 GB, free: 4.973 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.24e-05/0.5225, allocations: 22.83 kB / 0.5984 GB, free: 4.953 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002144/0.5228, allocations: 225.6 kB / 0.5986 GB, free: 4.699 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.5228, allocations: 14.81 kB / 0.5986 GB, free: 4.691 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.5228, allocations: 18.88 kB / 0.5986 GB, free: 4.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.5231, allocations: 199.9 kB / 0.5988 GB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.5231, allocations: 0 / 0.5988 GB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.5232, allocations: 6.125 kB / 0.5988 GB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.5232, allocations: 8 kB / 0.5988 GB, free: 4.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.5234, allocations: 113.7 kB / 0.599 GB, free: 4.438 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006363/0.524, allocations: 0.5251 MB / 0.5995 GB, free: 3.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.582e-05/0.5241, allocations: 31.77 kB / 0.5995 GB, free: 3.875 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.232e-05/0.5242, allocations: 30.28 kB / 0.5995 GB, free: 3.848 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.5242, allocations: 4 kB / 0.5995 GB, free: 3.844 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.5242, allocations: 35.94 kB / 0.5996 GB, free: 3.801 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.322e-06/0.5242, allocations: 0 / 0.5996 GB, free: 3.801 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001424/0.5244, allocations: 55.73 kB / 0.5996 GB, free: 3.746 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.5244, allocations: 55.36 kB / 0.5997 GB, free: 3.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.2e-05/0.5245, allocations: 104.7 kB / 0.5998 GB, free: 3.574 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.5245, allocations: 30.45 kB / 0.5998 GB, free: 3.539 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.571e-05/0.5246, allocations: 136.4 kB / 0.5999 GB, free: 3.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/0.5246, allocations: 27.08 kB / 0.6 GB, free: 3.387 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-06/0.5246, allocations: 0 / 0.6 GB, free: 3.387 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.067e-05/0.5247, allocations: 316.6 kB / 0.6003 GB, free: 3.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.021e-05/0.5247, allocations: 5.688 kB / 0.6003 GB, free: 3.066 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.786e-05/0.5247, allocations: 10.38 kB / 0.6003 GB, free: 3.059 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.483e-05/0.5248, allocations: 9.625 kB / 0.6003 GB, free: 3.051 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.5248, allocations: 0 / 0.6003 GB, free: 3.051 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.54e-05/0.5249, allocations: 59.44 kB / 0.6003 GB, free: 2.996 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.5249, allocations: 5.562 kB / 0.6003 GB, free: 2.992 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.5249, allocations: 0 / 0.6003 GB, free: 2.992 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.5249, allocations: 0 / 0.6003 GB, free: 2.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.951e-05/0.525, allocations: 15.98 kB / 0.6004 GB, free: 2.977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.525, allocations: 4 kB / 0.6004 GB, free: 2.973 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.739e-05/0.525, allocations: 7.953 kB / 0.6004 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.5251, allocations: 0 / 0.6004 GB, free: 2.965 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 4.986e-05/0.5251, allocations: 101 kB / 0.6005 GB, free: 2.859 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.395e-05/0.5251, allocations: 7.906 kB / 0.6005 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.344e-05/0.5252, allocations: 7.969 kB / 0.6005 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.5252, allocations: 0 / 0.6005 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.5252, allocations: 0 / 0.6005 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.5252, allocations: 4 kB / 0.6005 GB, free: 2.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002771/0.5255, allocations: 360.3 kB / 0.6008 GB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.5255, allocations: 7.984 kB / 0.6008 GB, free: 2.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.542e-05/0.5255, allocations: 12 kB / 0.6008 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.5255, allocations: 0 / 0.6008 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-06/0.5256, allocations: 0 / 0.6008 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.5256, allocations: 0 / 0.6008 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.5256, allocations: 3.953 kB / 0.6009 GB, free: 2.438 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.757e-05/0.5257, allocations: 159.8 kB / 0.601 GB, free: 2.273 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.5257, allocations: 81.05 kB / 0.6011 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.088e-05/0.5257, allocations: 3.875 kB / 0.6011 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.677e-05/0.5258, allocations: 7.984 kB / 0.6011 GB, free: 2.168 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.393e-05/0.5258, allocations: 0 / 0.6011 GB, free: 2.168 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.5258, allocations: 15.88 kB / 0.6011 GB, free: 2.152 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.495e-05/0.5259, allocations: 83.09 kB / 0.6012 GB, free: 2.074 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5259, allocations: 8 kB / 0.6012 GB, free: 2.066 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002015/0.5261, allocations: 23.75 kB / 0.6012 GB, free: 2.043 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0003444/0.5264, allocations: 0.688 MB / 0.6019 GB, free: 1.344 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.301e-05/0.5265, allocations: 25.73 kB / 0.6019 GB, free: 1.324 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.5265, allocations: 0 / 0.6019 GB, free: 1.324 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.394e-05/0.5266, allocations: 23 kB / 0.6019 GB, free: 1.305 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001522/0.5267, allocations: 11.38 kB / 0.6019 GB, free: 1.297 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005027/0.5272, allocations: 248.1 kB / 0.6022 GB, free: 1.035 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.5275, allocations: 0.7377 MB / 0.6029 GB, free: 284 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.175e-05/0.5275, allocations: 7.984 kB / 0.6029 GB, free: 276 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.234e-05/0.5276, allocations: 42.23 kB / 0.603 GB, free: 264 kB / 394.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5276, allocations: 0 / 0.603 GB, free: 264 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01143/0.539, allocations: 1.705 MB / 0.6046 GB, free: 14.66 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/0.5393, allocations: 138.6 kB / 0.6047 GB, free: 14.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.288/1.827, allocations: 4 kB / 0.6048 GB, free: 14.43 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat does not exist to compare? outputFormat=mat