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.001071/0.001071, allocations: 176.6 kB / 17.06 MB, free: 5.098 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.335/1.335, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007945/0.0007945, allocations: 99.45 kB / 292.1 MB, free: 10.92 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.2966/0.2966, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003776/0.0003777, allocations: 8 kB / 460 MB, free: 1.434 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3422, allocations: 61.89 MB / 0.5096 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.4531, allocations: 86 MB / 0.5936 GB, free: 9.102 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/0.4533, allocations: 63.94 kB / 0.5937 GB, free: 9.043 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003324/0.4567, allocations: 1.497 MB / 0.5951 GB, free: 7.539 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.4567, allocations: 0 / 0.5951 GB, free: 7.539 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.4567, allocations: 4 kB / 0.5951 GB, free: 7.535 MB / 410.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.0003814/0.4571, allocations: 415.4 kB / 0.5955 GB, free: 7.078 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.4571, allocations: 12.03 kB / 0.5955 GB, free: 7.066 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.776e-05/0.4572, allocations: 66.83 kB / 0.5956 GB, free: 6.992 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.014e-05/0.4573, allocations: 23.72 kB / 0.5956 GB, free: 6.969 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.4575, allocations: 218.8 kB / 0.5958 GB, free: 6.715 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.4575, allocations: 16.44 kB / 0.5959 GB, free: 6.699 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.696e-05/0.4576, allocations: 23.98 kB / 0.5959 GB, free: 6.676 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.4579, allocations: 203.2 kB / 0.5961 GB, free: 6.473 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.4579, allocations: 0 / 0.5961 GB, free: 6.473 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.4579, allocations: 8 kB / 0.5961 GB, free: 6.465 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.458, allocations: 8 kB / 0.5961 GB, free: 6.457 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002107/0.4582, allocations: 133.7 kB / 0.5962 GB, free: 6.324 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006231/0.4588, allocations: 0.5256 MB / 0.5967 GB, free: 5.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.357e-05/0.4589, allocations: 46.5 kB / 0.5968 GB, free: 5.695 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.906e-06/0.4589, allocations: 0 / 0.5968 GB, free: 5.695 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.602e-05/0.4589, allocations: 30.56 kB / 0.5968 GB, free: 5.656 MB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 9.02e-07/0.4589, allocations: 0 / 0.5968 GB, free: 5.656 MB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002138/0.4592, allocations: 81.8 kB / 0.5969 GB, free: 5.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.4592, allocations: 55.41 kB / 0.5969 GB, free: 5.504 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.304e-05/0.4593, allocations: 105 kB / 0.597 GB, free: 5.395 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.4593, allocations: 29.64 kB / 0.5971 GB, free: 5.359 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.19e-05/0.4594, allocations: 147.8 kB / 0.5972 GB, free: 5.207 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.4594, allocations: 11.81 kB / 0.5972 GB, free: 5.195 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.4594, allocations: 8 kB / 0.5972 GB, free: 5.188 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.4595, allocations: 314.8 kB / 0.5975 GB, free: 4.871 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.985e-05/0.4595, allocations: 15.94 kB / 0.5975 GB, free: 4.855 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.309e-05/0.4596, allocations: 15.98 kB / 0.5976 GB, free: 4.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.519e-05/0.4596, allocations: 16.33 kB / 0.5976 GB, free: 4.824 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4596, allocations: 0 / 0.5976 GB, free: 4.824 MB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000112/0.4598, allocations: 77.58 kB / 0.5976 GB, free: 4.742 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.4598, allocations: 9.406 kB / 0.5977 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.4598, allocations: 0 / 0.5977 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.4598, allocations: 0 / 0.5977 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.216e-05/0.4599, allocations: 8 kB / 0.5977 GB, free: 4.727 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.4599, allocations: 0 / 0.5977 GB, free: 4.727 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.791e-05/0.4599, allocations: 7.984 kB / 0.5977 GB, free: 4.719 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.4599, allocations: 0 / 0.5977 GB, free: 4.719 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 () * Number of clocked 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.791e-05/0.46, allocations: 146.2 kB / 0.5978 GB, free: 4.566 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.101e-05/0.4601, allocations: 0 / 0.5978 GB, free: 4.566 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.4601, allocations: 11.95 kB / 0.5978 GB, free: 4.559 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.4601, allocations: 4 kB / 0.5978 GB, free: 4.555 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4601, allocations: 0 / 0.5978 GB, free: 4.555 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.4601, allocations: 0 / 0.5978 GB, free: 4.555 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003229/0.4605, allocations: 374.4 kB / 0.5982 GB, free: 4.133 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4605, allocations: 0 / 0.5982 GB, free: 4.133 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.391e-05/0.4605, allocations: 15.94 kB / 0.5982 GB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.4605, allocations: 0 / 0.5982 GB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.4605, allocations: 0 / 0.5982 GB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.4605, allocations: 4 kB / 0.5982 GB, free: 4.113 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.4605, allocations: 0 / 0.5982 GB, free: 4.113 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.4607, allocations: 163.5 kB / 0.5984 GB, free: 3.938 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.4607, allocations: 88.95 kB / 0.5984 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.4608, allocations: 0 / 0.5984 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.18e-05/0.4608, allocations: 8 kB / 0.5984 GB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.798e-05/0.4608, allocations: 3.984 kB / 0.5985 GB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.4609, allocations: 192 / 0.5985 GB, free: 3.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.104e-05/0.4609, allocations: 87.28 kB / 0.5985 GB, free: 3.734 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4609, allocations: 3.938 kB / 0.5985 GB, free: 3.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002049/0.4611, allocations: 27.84 kB / 0.5986 GB, free: 3.703 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 () * Number of clocked 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.0004447/0.4616, allocations: 0.7162 MB / 0.5993 GB, free: 2.961 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001235/0.4617, allocations: 39.98 kB / 0.5993 GB, free: 2.922 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4617, allocations: 0 / 0.5993 GB, free: 2.922 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.504e-05/0.4618, allocations: 27.92 kB / 0.5993 GB, free: 2.895 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001674/0.4619, allocations: 13.19 kB / 0.5993 GB, free: 2.883 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008998/0.4628, allocations: 0.6551 MB / 0.6 GB, free: 2.184 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.4631, allocations: 0.7394 MB / 0.6007 GB, free: 1.418 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.616e-05/0.4631, allocations: 4 kB / 0.6007 GB, free: 1.414 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.726e-05/0.4632, allocations: 43.42 kB / 0.6007 GB, free: 1.371 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4632, allocations: 0 / 0.6007 GB, free: 1.371 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01355/0.4768, allocations: 1.682 MB / 0.6024 GB, free: 15.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002306/0.477, allocations: 156.8 kB / 0.6025 GB, free: 15.56 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.398/1.875, allocations: 0 / 0.6025 GB, free: 15.56 MB / 426.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