Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 175.1 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 221.5 MB / 230.7 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008727/0.0008727, allocations: 91.48 kB / 281.6 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2374/0.2374, allocations: 44.16 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.446e-05/1.447e-05, allocations: 8.203 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1494, allocations: 61.93 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4673/0.6167, allocations: 85.26 MB / 0.578 GB, free: 11.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.6169, allocations: 63.97 kB / 0.5781 GB, free: 11.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003407/0.6203, allocations: 1.477 MB / 0.5795 GB, free: 9.559 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.6203, allocations: 0 / 0.5795 GB, free: 9.559 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.6204, allocations: 7.828 kB / 0.5795 GB, free: 9.555 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.0003665/0.6207, allocations: 405.9 kB / 0.5799 GB, free: 9.113 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.6208, allocations: 15.98 kB / 0.5799 GB, free: 9.098 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.744e-05/0.6209, allocations: 19.75 kB / 0.58 GB, free: 9.082 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002365/0.6211, allocations: 214.8 kB / 0.5802 GB, free: 8.832 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.6211, allocations: 7.953 kB / 0.5802 GB, free: 8.824 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.6212, allocations: 18.89 kB / 0.5802 GB, free: 8.809 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000179/0.6213, allocations: 100.7 kB / 0.5803 GB, free: 8.711 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/0.6216, allocations: 156.2 kB / 0.5804 GB, free: 8.555 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.6216, allocations: 4 kB / 0.5804 GB, free: 8.551 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.6216, allocations: 0 / 0.5804 GB, free: 8.551 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.6216, allocations: 4 kB / 0.5804 GB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005647/0.6222, allocations: 464 kB / 0.5809 GB, free: 8.055 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.103e-05/0.6223, allocations: 34.56 kB / 0.5809 GB, free: 8.012 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.802e-05/0.6223, allocations: 20.98 kB / 0.5809 GB, free: 7.988 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.183e-05/0.6224, allocations: 3.953 kB / 0.5809 GB, free: 7.984 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.6224, allocations: 38.55 kB / 0.581 GB, free: 7.938 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.6224, allocations: 0 / 0.581 GB, free: 7.938 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.00013/0.6225, allocations: 45.7 kB / 0.581 GB, free: 7.887 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.6226, allocations: 59.34 kB / 0.5811 GB, free: 7.816 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.53e-05/0.6227, allocations: 101 kB / 0.5812 GB, free: 7.711 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.6227, allocations: 25.7 kB / 0.5812 GB, free: 7.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.832e-05/0.6227, allocations: 135.9 kB / 0.5813 GB, free: 7.543 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.6228, allocations: 11.81 kB / 0.5813 GB, free: 7.531 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/0.6228, allocations: 0 / 0.5813 GB, free: 7.531 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.898e-05/0.6229, allocations: 319.7 kB / 0.5816 GB, free: 7.211 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.425e-05/0.6229, allocations: 4 kB / 0.5816 GB, free: 7.207 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.298e-05/0.6229, allocations: 8 kB / 0.5817 GB, free: 7.199 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.701e-05/0.6229, allocations: 8 kB / 0.5817 GB, free: 7.191 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.6229, allocations: 0 / 0.5817 GB, free: 7.191 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.576e-05/0.623, allocations: 53.61 kB / 0.5817 GB, free: 7.133 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.623, allocations: 7.984 kB / 0.5817 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.6231, allocations: 8.172 kB / 0.5817 GB, free: 7.117 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.6231, allocations: 0 / 0.5817 GB, free: 7.117 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.547e-05/0.6232, allocations: 19.81 kB / 0.5817 GB, free: 7.098 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.6232, allocations: 0 / 0.5817 GB, free: 7.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.691e-05/0.6232, allocations: 4 kB / 0.5818 GB, free: 7.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.6232, allocations: 4 kB / 0.5818 GB, free: 7.09 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 6.312e-05/0.6233, allocations: 101 kB / 0.5819 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.948e-05/0.6234, allocations: 50.88 kB / 0.5819 GB, free: 6.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.6234, allocations: 11.86 kB / 0.5819 GB, free: 6.918 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.432e-05/0.6234, allocations: 8.406 kB / 0.5819 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.6234, allocations: 0 / 0.5819 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.6234, allocations: 3.984 kB / 0.5819 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.6235, allocations: 0 / 0.5819 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002451/0.6237, allocations: 311.8 kB / 0.5822 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.6237, allocations: 3.953 kB / 0.5822 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.025e-05/0.6238, allocations: 15.98 kB / 0.5822 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.6238, allocations: 384 / 0.5822 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.6238, allocations: 0 / 0.5822 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.6238, allocations: 4 kB / 0.5822 GB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6238, allocations: 0 / 0.5822 GB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.6239, allocations: 155.4 kB / 0.5824 GB, free: 6.367 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.828e-05/0.624, allocations: 85.06 kB / 0.5825 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.624, allocations: 0 / 0.5825 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.206e-05/0.624, allocations: 0 / 0.5825 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.098e-05/0.6241, allocations: 11.98 kB / 0.5825 GB, free: 6.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.6241, allocations: 0 / 0.5825 GB, free: 6.254 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.04e-05/0.6241, allocations: 83.98 kB / 0.5826 GB, free: 6.172 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6241, allocations: 0 / 0.5826 GB, free: 6.172 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002105/0.6244, allocations: 23.75 kB / 0.5826 GB, free: 6.148 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.0003794/0.6247, allocations: 0.689 MB / 0.5833 GB, free: 5.43 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.406e-05/0.6248, allocations: 24 kB / 0.5833 GB, free: 5.406 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.6248, allocations: 0 / 0.5833 GB, free: 5.406 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.479e-05/0.6249, allocations: 12 kB / 0.5833 GB, free: 5.395 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.6251, allocations: 9.906 kB / 0.5833 GB, free: 5.387 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005635/0.6256, allocations: 242.6 kB / 0.5835 GB, free: 5.109 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.6259, allocations: 0.7314 MB / 0.5842 GB, free: 4.352 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.808e-05/0.626, allocations: 7.781 kB / 0.5843 GB, free: 4.344 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.49e-05/0.626, allocations: 47.41 kB / 0.5843 GB, free: 4.297 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.626, allocations: 0 / 0.5843 GB, free: 4.297 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01873/0.6448, allocations: 1.382 MB / 0.5857 GB, free: 2.93 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/0.645, allocations: 115.8 kB / 0.5858 GB, free: 2.738 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.423/2.068, allocations: 0 / 0.5858 GB, free: 2.738 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat does not exist to compare? outputFormat=mat