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.002141/0.002141, allocations: 179.9 kB / 13.66 MB, free: 1.664 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.131/2.131, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001098/0.001098, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2878/0.2878, allocations: 43.48 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.638e-05/3.653e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1192, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4967/0.616, allocations: 84.78 MB / 0.5557 GB, free: 2.703 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.6162, allocations: 61.66 kB / 0.5557 GB, free: 2.672 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004634/0.6209, allocations: 1.481 MB / 0.5572 GB, free: 1.352 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.621, allocations: 3.938 kB / 0.5572 GB, free: 1.348 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.621, allocations: 12 kB / 0.5572 GB, free: 1.336 MB / 362.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.0004157/0.6214, allocations: 407.3 kB / 0.5576 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.6215, allocations: 16.02 kB / 0.5576 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.475e-05/0.6216, allocations: 57.89 kB / 0.5577 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.624e-05/0.6216, allocations: 23.77 kB / 0.5577 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.6219, allocations: 222.6 kB / 0.5579 GB, free: 0.5625 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.622, allocations: 16.06 kB / 0.5579 GB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.664e-05/0.622, allocations: 27.75 kB / 0.5579 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003993/0.6224, allocations: 188.5 kB / 0.5581 GB, free: 404 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.6224, allocations: 3.609 kB / 0.5581 GB, free: 404 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.6225, allocations: 11.69 kB / 0.5581 GB, free: 400 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.6225, allocations: 4 kB / 0.5581 GB, free: 396 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002616/0.6228, allocations: 120.2 kB / 0.5582 GB, free: 304 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009037/0.6237, allocations: 0.5162 MB / 0.5588 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.918e-05/0.6238, allocations: 38.39 kB / 0.5588 GB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.117e-05/0.6239, allocations: 20.67 kB / 0.5588 GB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.6239, allocations: 0 / 0.5588 GB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.6239, allocations: 34.56 kB / 0.5588 GB, free: 15.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.834e-06/0.6239, allocations: 0 / 0.5588 GB, free: 15.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001959/0.6241, allocations: 61.09 kB / 0.5589 GB, free: 15.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.6242, allocations: 55.36 kB / 0.559 GB, free: 15.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.6243, allocations: 100.9 kB / 0.559 GB, free: 15.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.6244, allocations: 25.7 kB / 0.5591 GB, free: 15.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.6245, allocations: 209.5 kB / 0.5593 GB, free: 15.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.6245, allocations: 23.53 kB / 0.5593 GB, free: 15.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-06/0.6246, allocations: 0 / 0.5593 GB, free: 15.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.6247, allocations: 314.8 kB / 0.5596 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.83e-05/0.6248, allocations: 7.812 kB / 0.5596 GB, free: 14.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.466e-05/0.6248, allocations: 7.875 kB / 0.5596 GB, free: 14.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.457e-05/0.6248, allocations: 12.19 kB / 0.5596 GB, free: 14.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.6248, allocations: 0 / 0.5596 GB, free: 14.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001171/0.625, allocations: 57.31 kB / 0.5597 GB, free: 14.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.625, allocations: 4 kB / 0.5597 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.625, allocations: 0 / 0.5597 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.625, allocations: 0 / 0.5597 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.6252, allocations: 15.98 kB / 0.5597 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.6252, allocations: 4 kB / 0.5597 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.358e-05/0.6253, allocations: 3.953 kB / 0.5597 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.6253, allocations: 4 kB / 0.5597 GB, free: 14.78 MB / 378.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.013e-05/0.6254, allocations: 101 kB / 0.5598 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.036e-05/0.6254, allocations: 0 / 0.5598 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.008e-05/0.6255, allocations: 16.19 kB / 0.5598 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.6255, allocations: 0 / 0.5598 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.6255, allocations: 3.938 kB / 0.5598 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.6255, allocations: 11.97 kB / 0.5598 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005503/0.6261, allocations: 367.5 kB / 0.5602 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.6261, allocations: 0 / 0.5602 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.434e-05/0.6262, allocations: 8 kB / 0.5602 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.6262, allocations: 0 / 0.5602 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.6262, allocations: 4 kB / 0.5602 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.6263, allocations: 320 / 0.5602 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.6263, allocations: 3.953 kB / 0.5602 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001697/0.6265, allocations: 154.9 kB / 0.5603 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.103e-05/0.6265, allocations: 88.95 kB / 0.5604 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.6266, allocations: 0 / 0.5604 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.504e-05/0.6266, allocations: 8.172 kB / 0.5604 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.06e-05/0.6267, allocations: 4 kB / 0.5604 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.6267, allocations: 3.953 kB / 0.5604 GB, free: 13.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.617e-05/0.6268, allocations: 91.02 kB / 0.5605 GB, free: 13.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6268, allocations: 4 kB / 0.5605 GB, free: 13.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003003/0.6271, allocations: 31.69 kB / 0.5606 GB, free: 13.85 MB / 378.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.0005848/0.6277, allocations: 0.6918 MB / 0.5612 GB, free: 13.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.6278, allocations: 19.88 kB / 0.5613 GB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.6279, allocations: 0 / 0.5613 GB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.812e-05/0.6279, allocations: 15.94 kB / 0.5613 GB, free: 13.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.6282, allocations: 9.406 kB / 0.5613 GB, free: 13.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008787/0.6291, allocations: 284.3 kB / 0.5616 GB, free: 12.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.6295, allocations: 0.7416 MB / 0.5623 GB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.38e-05/0.6296, allocations: 46.05 kB / 0.5623 GB, free: 12.04 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.6296, allocations: 0 / 0.5623 GB, free: 12.04 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.551/3.181, allocations: 1.88 MB / 0.5642 GB, free: 10.17 MB / 378.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