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.001249/0.001249, allocations: 197.7 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009273/0.0009274, allocations: 96.12 kB / 286.7 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2124/0.2124, allocations: 45.15 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.131e-05/2.135e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 63.25 MB / 0.5044 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4026/0.5166, allocations: 86.32 MB / 0.5887 GB, free: 176 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.5169, allocations: 63.03 kB / 0.5888 GB, free: 144 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003455/0.5203, allocations: 1.482 MB / 0.5902 GB, free: 14.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.5204, allocations: 0 / 0.5902 GB, free: 14.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.5204, allocations: 4 kB / 0.5902 GB, free: 14.82 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.0004125/0.5208, allocations: 405.8 kB / 0.5906 GB, free: 14.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.5208, allocations: 8.031 kB / 0.5906 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.5209, allocations: 19.98 kB / 0.5907 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.5211, allocations: 225.7 kB / 0.5909 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.5212, allocations: 4.844 kB / 0.5909 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.5212, allocations: 15.94 kB / 0.5909 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001837/0.5214, allocations: 99.89 kB / 0.591 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002473/0.5216, allocations: 153.9 kB / 0.5911 GB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.5217, allocations: 0 / 0.5911 GB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.5217, allocations: 8 kB / 0.5911 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.5217, allocations: 4 kB / 0.5911 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000593/0.5223, allocations: 459.8 kB / 0.5916 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.581e-05/0.5224, allocations: 37.77 kB / 0.5916 GB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.855e-05/0.5224, allocations: 24.48 kB / 0.5916 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.5224, allocations: 0 / 0.5916 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.5225, allocations: 30.56 kB / 0.5917 GB, free: 13.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 9.72e-07/0.5225, allocations: 0 / 0.5917 GB, free: 13.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001439/0.5226, allocations: 60.66 kB / 0.5917 GB, free: 13.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/0.5227, allocations: 51.41 kB / 0.5918 GB, free: 13.21 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.471e-05/0.5227, allocations: 108.7 kB / 0.5919 GB, free: 13.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.5228, allocations: 25.7 kB / 0.5919 GB, free: 13.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.822e-05/0.5228, allocations: 135.1 kB / 0.592 GB, free: 12.94 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.5229, allocations: 15.56 kB / 0.5921 GB, free: 12.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.5229, allocations: 0 / 0.5921 GB, free: 12.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.523, allocations: 314.8 kB / 0.5924 GB, free: 12.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.454e-05/0.523, allocations: 7.562 kB / 0.5924 GB, free: 12.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.247e-05/0.523, allocations: 4 kB / 0.5924 GB, free: 12.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.004e-05/0.523, allocations: 15.45 kB / 0.5924 GB, free: 12.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.5231, allocations: 4 kB / 0.5924 GB, free: 12.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.982e-05/0.5231, allocations: 49.3 kB / 0.5924 GB, free: 12.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.5232, allocations: 4 kB / 0.5924 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.5232, allocations: 3.984 kB / 0.5924 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.5232, allocations: 0 / 0.5924 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.896e-05/0.5233, allocations: 15.94 kB / 0.5925 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.5233, allocations: 0 / 0.5925 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.715e-05/0.5233, allocations: 4.25 kB / 0.5925 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.5233, allocations: 0 / 0.5925 GB, free: 12.51 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 8.445e-05/0.5234, allocations: 112.5 kB / 0.5926 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.135e-05/0.5235, allocations: 54.08 kB / 0.5926 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.5235, allocations: 3.906 kB / 0.5926 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.21e-05/0.5236, allocations: 11.97 kB / 0.5926 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.5236, allocations: 0 / 0.5926 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.5236, allocations: 0 / 0.5926 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.5236, allocations: 3.984 kB / 0.5926 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.5239, allocations: 313.4 kB / 0.5929 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.5239, allocations: 0 / 0.5929 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.894e-05/0.5239, allocations: 11.98 kB / 0.5929 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.5239, allocations: 4 kB / 0.593 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.524, allocations: 0 / 0.593 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.524, allocations: 0 / 0.593 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.524, allocations: 0 / 0.593 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001133/0.5241, allocations: 154.6 kB / 0.5931 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.5241, allocations: 81.11 kB / 0.5932 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.5241, allocations: 4 kB / 0.5932 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.647e-05/0.5242, allocations: 0 / 0.5932 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.219e-05/0.5243, allocations: 7.938 kB / 0.5932 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.5243, allocations: 3.984 kB / 0.5932 GB, free: 11.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.579e-05/0.5243, allocations: 83.22 kB / 0.5933 GB, free: 11.63 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5243, allocations: 0 / 0.5933 GB, free: 11.63 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002209/0.5245, allocations: 27.75 kB / 0.5933 GB, free: 11.61 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.0003818/0.5249, allocations: 0.6917 MB / 0.594 GB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.874e-05/0.525, allocations: 19.5 kB / 0.594 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.525, allocations: 0 / 0.594 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.962e-05/0.5251, allocations: 15.56 kB / 0.594 GB, free: 10.87 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001897/0.5253, allocations: 16.2 kB / 0.594 GB, free: 10.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005294/0.5258, allocations: 237.3 kB / 0.5942 GB, free: 10.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.5261, allocations: 0.7311 MB / 0.595 GB, free: 9.844 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.95e-05/0.5261, allocations: 3.984 kB / 0.595 GB, free: 9.84 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.209e-05/0.5262, allocations: 48.59 kB / 0.595 GB, free: 9.82 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5262, allocations: 0 / 0.595 GB, free: 9.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01888/0.5451, allocations: 1.381 MB / 0.5964 GB, free: 8.453 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001839/0.5453, allocations: 118.1 kB / 0.5965 GB, free: 8.266 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.411/1.956, allocations: 0 / 0.5965 GB, free: 8.266 MB / 394.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