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.002175/0.002175, allocations: 182.1 kB / 16.4 MB, free: 5.754 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.153/2.153, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001234/0.001234, allocations: 89.3 kB / 270.9 MB, free: 8.363 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.5488/0.5488, allocations: 43.56 MB / 362.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006877/0.0006881, allocations: 15.98 kB / 431.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1462, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002536/0.1488, allocations: 1.242 MB / 491.5 MB, free: 9.648 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002754/0.1491, allocations: 47.83 kB / 491.6 MB, free: 9.602 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.897e-05/0.1492, allocations: 3.938 kB / 491.6 MB, free: 9.598 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001947/0.1494, allocations: 19.92 kB / 491.6 MB, free: 9.578 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.024e-05/0.1495, allocations: 3.984 kB / 491.6 MB, free: 9.574 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001132/0.1496, allocations: 15.98 kB / 491.6 MB, free: 9.559 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.1497, allocations: 47.89 kB / 491.7 MB, free: 9.512 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003861/0.1501, allocations: 113.7 kB / 491.8 MB, free: 9.395 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.851e-05/0.1502, allocations: 11.92 kB / 491.8 MB, free: 9.383 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.855e-05/0.1503, allocations: 19.81 kB / 491.8 MB, free: 9.363 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.518e-05/0.1503, allocations: 0 / 491.8 MB, free: 9.363 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.691e-05/0.1503, allocations: 4 kB / 491.8 MB, free: 9.359 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.1504, allocations: 51.89 kB / 491.9 MB, free: 9.309 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.233e-05/0.1505, allocations: 45.58 kB / 491.9 MB, free: 9.258 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.1507, allocations: 107.7 kB / 492 MB, free: 9.152 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1508, allocations: 0 / 492 MB, free: 9.152 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1508, allocations: 4 kB / 492 MB, free: 9.148 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.1508, allocations: 0 / 492 MB, free: 9.148 MB / 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.0007295/0.1515, allocations: 407.6 kB / 492.4 MB, free: 8.699 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.776e-05/0.1516, allocations: 8.031 kB / 492.4 MB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001474/0.1518, allocations: 62.89 kB / 492.5 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.289e-05/0.1518, allocations: 23.67 kB / 492.5 MB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003345/0.1522, allocations: 214.8 kB / 492.7 MB, free: 8.348 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.1522, allocations: 16.44 kB / 492.8 MB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.331e-05/0.1523, allocations: 24 kB / 492.8 MB, free: 8.309 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000632/0.1529, allocations: 208.6 kB / 493 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.153, allocations: 3.938 kB / 493 MB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.153, allocations: 8 kB / 493 MB, free: 8.086 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.153, allocations: 8 kB / 493 MB, free: 8.078 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000427/0.1535, allocations: 133.6 kB / 493.1 MB, free: 7.949 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.1546, allocations: 0.5139 MB / 493.6 MB, free: 7.383 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.1548, allocations: 46.56 kB / 493.7 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.1548, allocations: 3.984 kB / 493.7 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.1548, allocations: 30.56 kB / 493.7 MB, free: 7.285 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 3.286e-06/0.1548, allocations: 0 / 493.7 MB, free: 7.285 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003663/0.1552, allocations: 85.69 kB / 493.8 MB, free: 7.195 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.1553, allocations: 55.41 kB / 493.9 MB, free: 7.129 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.1554, allocations: 109.8 kB / 494 MB, free: 7.012 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.1555, allocations: 25.7 kB / 494 MB, free: 6.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.1556, allocations: 214.3 kB / 494.2 MB, free: 6.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.785e-05/0.1557, allocations: 11.75 kB / 494.2 MB, free: 6.758 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-06/0.1557, allocations: 4 kB / 494.2 MB, free: 6.754 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1559, allocations: 314.8 kB / 494.5 MB, free: 6.438 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.202e-05/0.1559, allocations: 11.98 kB / 494.5 MB, free: 6.426 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.823e-05/0.156, allocations: 19.98 kB / 494.6 MB, free: 6.406 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.865e-05/0.1561, allocations: 12.38 kB / 494.6 MB, free: 6.395 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1561, allocations: 0 / 494.6 MB, free: 6.395 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002182/0.1563, allocations: 65.62 kB / 494.6 MB, free: 6.324 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.1564, allocations: 11.75 kB / 494.6 MB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.088e-06/0.1564, allocations: 3.984 kB / 494.6 MB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.1564, allocations: 0 / 494.6 MB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.1566, allocations: 19.94 kB / 494.7 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.1566, allocations: 3.953 kB / 494.7 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.896e-05/0.1566, allocations: 4 kB / 494.7 MB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.1567, allocations: 0 / 494.7 MB, free: 6.285 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 () * 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.0001718/0.1568, allocations: 141.8 kB / 494.8 MB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.1569, allocations: 3.906 kB / 494.8 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.841e-05/0.1569, allocations: 7.969 kB / 494.8 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1569, allocations: 0 / 494.8 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.331e-06/0.1569, allocations: 4 kB / 494.8 MB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.157, allocations: 3.953 kB / 494.8 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006221/0.1576, allocations: 378.4 kB / 495.2 MB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1576, allocations: 0 / 495.2 MB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.306e-05/0.1577, allocations: 11.98 kB / 495.2 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1577, allocations: 0 / 495.2 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.1577, allocations: 4 kB / 495.2 MB, free: 5.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1578, allocations: 7.953 kB / 495.2 MB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1578, allocations: 3.938 kB / 495.2 MB, free: 5.668 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002861/0.1581, allocations: 163.4 kB / 495.4 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-05/0.1581, allocations: 85.09 kB / 495.5 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.565e-05/0.1582, allocations: 0 / 495.5 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.69e-05/0.1583, allocations: 8.188 kB / 495.5 MB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.1583, allocations: 3.953 kB / 495.5 MB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.1583, allocations: 4 kB / 495.5 MB, free: 5.375 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.689e-05/0.1584, allocations: 91.27 kB / 495.6 MB, free: 5.285 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1584, allocations: 0 / 495.6 MB, free: 5.285 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003354/0.1588, allocations: 35.69 kB / 495.6 MB, free: 5.25 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 () * 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.0007298/0.1595, allocations: 0.7124 MB / 496.3 MB, free: 4.512 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001954/0.1597, allocations: 28.05 kB / 496.4 MB, free: 4.484 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1597, allocations: 0 / 496.4 MB, free: 4.484 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.926e-05/0.1598, allocations: 31.92 kB / 496.4 MB, free: 4.453 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.1601, allocations: 8.5 kB / 496.4 MB, free: 4.445 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.1617, allocations: 0.6985 MB / 497.1 MB, free: 3.684 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.1622, allocations: 0.7395 MB / 497.8 MB, free: 2.918 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.1624, allocations: 47.42 kB / 497.9 MB, free: 2.871 MB / 378.7 MB Notification: Performance of SimCode: time 2.024e-06/0.1624, allocations: 0 / 497.9 MB, free: 2.871 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.548/2.711, allocations: 1.827 MB / 499.7 MB, free: 1.047 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