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.00104/0.00104, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 221.3 MB / 236 MB, free: 2.965 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.0009082/0.0009081, allocations: 88.05 kB / 287 MB, free: 252 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2058/0.2058, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.139e-05/4.151e-05, allocations: 224 / 451.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1576, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4277/0.5854, allocations: 85.92 MB / 0.5857 GB, free: 3.332 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.5858, allocations: 60.67 kB / 0.5858 GB, free: 3.273 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004761/0.5905, allocations: 1.496 MB / 0.5872 GB, free: 1.789 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5906, allocations: 3.938 kB / 0.5872 GB, free: 1.785 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.5906, allocations: 6.953 kB / 0.5872 GB, free: 1.781 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.0005419/0.5911, allocations: 398.5 kB / 0.5876 GB, free: 1.344 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.306e-05/0.5912, allocations: 12.03 kB / 0.5876 GB, free: 1.332 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.5914, allocations: 62.88 kB / 0.5877 GB, free: 1.262 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.262e-05/0.5915, allocations: 23.81 kB / 0.5877 GB, free: 1.238 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.5918, allocations: 226.5 kB / 0.5879 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.5919, allocations: 16.44 kB / 0.5879 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.227e-05/0.5919, allocations: 24 kB / 0.588 GB, free: 0.9414 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.5924, allocations: 191.3 kB / 0.5881 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.5924, allocations: 0 / 0.5881 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.5925, allocations: 12 kB / 0.5882 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.5925, allocations: 4 kB / 0.5882 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.5928, allocations: 125.6 kB / 0.5883 GB, free: 0.6055 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009252/0.5937, allocations: 0.514 MB / 0.5888 GB, free: 44 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.5938, allocations: 38.56 kB / 0.5888 GB, free: 16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.749e-05/0.5939, allocations: 20.98 kB / 0.5888 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.5939, allocations: 0 / 0.5888 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.594, allocations: 34.56 kB / 0.5889 GB, free: 15.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 1.393e-06/0.594, allocations: 4 kB / 0.5889 GB, free: 15.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002054/0.5942, allocations: 53.55 kB / 0.5889 GB, free: 15.87 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.5943, allocations: 55.39 kB / 0.589 GB, free: 15.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.5944, allocations: 101 kB / 0.5891 GB, free: 15.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.5944, allocations: 25.7 kB / 0.5891 GB, free: 15.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.461e-05/0.5945, allocations: 140 kB / 0.5892 GB, free: 15.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.5946, allocations: 23.64 kB / 0.5893 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-06/0.5946, allocations: 0 / 0.5893 GB, free: 15.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.5948, allocations: 322.8 kB / 0.5896 GB, free: 15.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.728e-05/0.5948, allocations: 8 kB / 0.5896 GB, free: 15.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.255e-05/0.5948, allocations: 8 kB / 0.5896 GB, free: 15.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.736e-05/0.5949, allocations: 4 kB / 0.5896 GB, free: 15.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.5949, allocations: 3.984 kB / 0.5896 GB, free: 15.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001431/0.595, allocations: 57.83 kB / 0.5896 GB, free: 15.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.5951, allocations: 8 kB / 0.5897 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.5951, allocations: 224 / 0.5897 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.5951, allocations: 0 / 0.5897 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.5952, allocations: 15.92 kB / 0.5897 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.5953, allocations: 4 kB / 0.5897 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.99e-05/0.5953, allocations: 4 kB / 0.5897 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.5953, allocations: 0 / 0.5897 GB, free: 15.05 MB / 410.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 9.688e-05/0.5954, allocations: 112.9 kB / 0.5898 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/0.5955, allocations: 3.906 kB / 0.5898 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.741e-05/0.5955, allocations: 4.094 kB / 0.5898 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.5955, allocations: 4 kB / 0.5898 GB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.5956, allocations: 3.984 kB / 0.5898 GB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.5956, allocations: 4 kB / 0.5898 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004833/0.5961, allocations: 366.5 kB / 0.5902 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.5961, allocations: 3.984 kB / 0.5902 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.792e-05/0.5962, allocations: 8 kB / 0.5902 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.5962, allocations: 0 / 0.5902 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.5962, allocations: 0 / 0.5902 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.5962, allocations: 0 / 0.5902 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.5962, allocations: 0 / 0.5902 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/0.5964, allocations: 163.3 kB / 0.5903 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.214e-05/0.5965, allocations: 81.05 kB / 0.5904 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.5965, allocations: 11.92 kB / 0.5904 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-05/0.5966, allocations: 4 kB / 0.5904 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.629e-05/0.5966, allocations: 4 kB / 0.5904 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.5966, allocations: 192 / 0.5904 GB, free: 14.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.932e-05/0.5967, allocations: 91.27 kB / 0.5905 GB, free: 14.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5967, allocations: 4 kB / 0.5905 GB, free: 14.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003594/0.5971, allocations: 27.75 kB / 0.5905 GB, free: 14.07 MB / 410.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.0005295/0.5976, allocations: 0.6929 MB / 0.5912 GB, free: 13.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001135/0.5978, allocations: 20.06 kB / 0.5912 GB, free: 13.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5978, allocations: 0 / 0.5912 GB, free: 13.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.388e-05/0.5978, allocations: 16 kB / 0.5912 GB, free: 13.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.5981, allocations: 8 kB / 0.5912 GB, free: 13.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008004/0.5989, allocations: 260.2 kB / 0.5915 GB, free: 13.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.5994, allocations: 0.7355 MB / 0.5922 GB, free: 12.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4e-05/0.5994, allocations: 11.77 kB / 0.5922 GB, free: 12.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.551e-05/0.5995, allocations: 47.42 kB / 0.5923 GB, free: 12.2 MB / 410.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5995, allocations: 0 / 0.5923 GB, free: 12.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.6149, allocations: 1.708 MB / 0.5939 GB, free: 10.6 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000224/0.6152, allocations: 129.2 kB / 0.5941 GB, free: 10.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.466/2.081, allocations: 4 kB / 0.5941 GB, free: 10.38 MB / 410.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