Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001466/0.001466, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.109/2.109, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001195/0.001195, allocations: 92.42 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5348/0.5348, allocations: 43.55 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005114/0.0005113, allocations: 20 kB / 431.5 MB, free: 5.855 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1345, allocations: 58.84 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4738/0.6084, allocations: 84.88 MB / 0.5617 GB, free: 1.645 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.6087, allocations: 62.12 kB / 0.5618 GB, free: 1.586 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004622/0.6133, allocations: 1.483 MB / 0.5632 GB, free: 124 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.6134, allocations: 4 kB / 0.5632 GB, free: 120 kB / 378.7 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.6134, allocations: 10.95 kB / 0.5632 GB, free: 112 kB / 378.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.0005841/0.614, allocations: 411.2 kB / 0.5636 GB, free: 15.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.6141, allocations: 8.031 kB / 0.5636 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001297/0.6142, allocations: 70.81 kB / 0.5637 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.964e-05/0.6143, allocations: 31.14 kB / 0.5637 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003324/0.6146, allocations: 218.7 kB / 0.5639 GB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.6147, allocations: 12.44 kB / 0.5639 GB, free: 15.28 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.458e-05/0.6147, allocations: 24 kB / 0.564 GB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005483/0.6153, allocations: 203.2 kB / 0.5642 GB, free: 15.06 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.6153, allocations: 4 kB / 0.5642 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.6154, allocations: 5.031 kB / 0.5642 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.6154, allocations: 4 kB / 0.5642 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004048/0.6158, allocations: 133.7 kB / 0.5643 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009631/0.6168, allocations: 0.5177 MB / 0.5648 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.6169, allocations: 50.5 kB / 0.5649 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.617, allocations: 4 kB / 0.5649 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.617, allocations: 30.56 kB / 0.5649 GB, free: 14.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 2.475e-06/0.617, allocations: 0.5625 kB / 0.5649 GB, free: 14.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003388/0.6174, allocations: 73.8 kB / 0.565 GB, free: 14.17 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.6174, allocations: 55.36 kB / 0.565 GB, free: 14.11 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.556e-05/0.6175, allocations: 105 kB / 0.5651 GB, free: 14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.6176, allocations: 29.7 kB / 0.5651 GB, free: 13.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.6177, allocations: 218.2 kB / 0.5653 GB, free: 13.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.417e-05/0.6177, allocations: 19.27 kB / 0.5654 GB, free: 13.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-06/0.6177, allocations: 4 kB / 0.5654 GB, free: 13.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.6179, allocations: 310.8 kB / 0.5657 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.392e-05/0.618, allocations: 15.98 kB / 0.5657 GB, free: 13.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.24e-05/0.618, allocations: 12.75 kB / 0.5657 GB, free: 13.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.512e-05/0.6181, allocations: 15.98 kB / 0.5657 GB, free: 13.37 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.6181, allocations: 4.219 kB / 0.5657 GB, free: 13.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002113/0.6184, allocations: 62.75 kB / 0.5658 GB, free: 13.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.6184, allocations: 7.938 kB / 0.5658 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.842e-06/0.6184, allocations: 0 / 0.5658 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.6184, allocations: 0 / 0.5658 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.6186, allocations: 15.98 kB / 0.5658 GB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.6186, allocations: 0 / 0.5658 GB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.753e-05/0.6187, allocations: 15.8 kB / 0.5658 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.6187, allocations: 5.688 kB / 0.5658 GB, free: 13.26 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 () * 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 0.0001622/0.6189, allocations: 133.8 kB / 0.5659 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.149e-05/0.6189, allocations: 3.984 kB / 0.5659 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.327e-05/0.619, allocations: 11.97 kB / 0.566 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.619, allocations: 4 kB / 0.566 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.619, allocations: 0 / 0.566 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.619, allocations: 0 / 0.566 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005805/0.6196, allocations: 378.4 kB / 0.5663 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.197e-06/0.6196, allocations: 0 / 0.5663 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.752e-05/0.6197, allocations: 8 kB / 0.5663 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.752e-06/0.6197, allocations: 4 kB / 0.5663 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.6197, allocations: 4 kB / 0.5663 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.155e-06/0.6197, allocations: 3.188 kB / 0.5663 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.6197, allocations: 3.984 kB / 0.5663 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002447/0.62, allocations: 163.4 kB / 0.5665 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-05/0.6201, allocations: 81.05 kB / 0.5666 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.6201, allocations: 4 kB / 0.5666 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.346e-05/0.6202, allocations: 11.98 kB / 0.5666 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.617e-05/0.6202, allocations: 0 / 0.5666 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.6203, allocations: 4 kB / 0.5666 GB, free: 12.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.335e-05/0.6203, allocations: 95.16 kB / 0.5667 GB, free: 12.27 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6203, allocations: 0 / 0.5667 GB, free: 12.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003027/0.6206, allocations: 27.75 kB / 0.5667 GB, free: 12.24 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 () * 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.0006562/0.6213, allocations: 0.7118 MB / 0.5674 GB, free: 11.51 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002025/0.6215, allocations: 35.98 kB / 0.5674 GB, free: 11.47 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.6216, allocations: 0 / 0.5674 GB, free: 11.47 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.378e-05/0.6216, allocations: 23.98 kB / 0.5675 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/0.6219, allocations: 15.92 kB / 0.5675 GB, free: 11.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.6235, allocations: 0.691 MB / 0.5682 GB, free: 10.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.6239, allocations: 0.7421 MB / 0.5689 GB, free: 9.934 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.624, allocations: 47.41 kB / 0.5689 GB, free: 9.887 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.624, allocations: 0 / 0.5689 GB, free: 9.887 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.58/3.204, allocations: 1.831 MB / 0.5707 GB, free: 8.066 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux_res.mat does not exist to compare? outputFormat=mat