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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009164/0.0009166, allocations: 93.52 kB / 17 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009215/0.0009216, allocations: 181.4 kB / 17.89 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 223.2 MB / 241.9 MB, free: 312 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2171/0.2171, allocations: 44.22 MB / 337.2 MB, free: 2.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005548/0.000555, allocations: 8.219 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1406, allocations: 61.92 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001847/0.1425, allocations: 1.236 MB / 472.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001302/0.1427, allocations: 47.84 kB / 472.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.964e-05/0.1428, allocations: 7.938 kB / 472.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.1429, allocations: 7.922 kB / 472.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.607e-05/0.1429, allocations: 15.86 kB / 473 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.612e-05/0.143, allocations: 19.97 kB / 473 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.1432, allocations: 63.84 kB / 473 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.1435, allocations: 101.9 kB / 473.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.243e-05/0.1435, allocations: 19.86 kB / 473.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.528e-05/0.1436, allocations: 19.86 kB / 473.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.1436, allocations: 3.984 kB / 473.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.05e-05/0.1436, allocations: 4 kB / 473.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.477e-05/0.1437, allocations: 47.89 kB / 473.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.803e-05/0.1438, allocations: 49.64 kB / 473.3 MB, free: 12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.1439, allocations: 99.81 kB / 473.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.1439, allocations: 0 / 473.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.1439, allocations: 0 / 473.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.1439, allocations: 0 / 473.4 MB, free: 11.9 MB / 350.1 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.0005202/0.1444, allocations: 413.8 kB / 473.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.1445, allocations: 8.031 kB / 473.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.819e-05/0.1446, allocations: 66.88 kB / 473.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.1447, allocations: 19.81 kB / 473.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.1449, allocations: 210.8 kB / 474.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.1449, allocations: 20.39 kB / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.1449, allocations: 24 kB / 474.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003411/0.1453, allocations: 203.2 kB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.1453, allocations: 0 / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.1453, allocations: 12 kB / 474.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1453, allocations: 4 kB / 474.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.1456, allocations: 133.7 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.1462, allocations: 0.5216 MB / 475 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.326e-05/0.1464, allocations: 46.5 kB / 475 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.449e-05/0.1464, allocations: 32.97 kB / 475.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.1464, allocations: 0 / 475.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.1465, allocations: 38.56 kB / 475.1 MB, free: 10 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 9.11e-07/0.1465, allocations: 0 / 475.1 MB, free: 10 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002887/0.1468, allocations: 85.52 kB / 475.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.1468, allocations: 51.41 kB / 475.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.053e-05/0.1469, allocations: 109.8 kB / 475.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.466e-05/0.147, allocations: 29.7 kB / 475.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.051e-05/0.1471, allocations: 136 kB / 475.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.1471, allocations: 23.72 kB / 475.5 MB, free: 9.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.846e-06/0.1471, allocations: 0 / 475.5 MB, free: 9.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002395/0.1474, allocations: 322.8 kB / 475.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.286e-05/0.1474, allocations: 15.98 kB / 475.9 MB, free: 9.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.234e-05/0.1474, allocations: 12 kB / 475.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.981e-05/0.1475, allocations: 19.92 kB / 475.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.1475, allocations: 0 / 475.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001164/0.1476, allocations: 69.59 kB / 476 MB, free: 9.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1476, allocations: 8 kB / 476 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1477, allocations: 0 / 476 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.1477, allocations: 3.938 kB / 476 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.097e-05/0.1478, allocations: 11.98 kB / 476 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1478, allocations: 0 / 476 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.534e-05/0.1478, allocations: 4 kB / 476 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.1478, allocations: 0 / 476 MB, free: 9.062 MB / 350.1 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.0001112/0.1479, allocations: 146.3 kB / 476.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.281e-05/0.148, allocations: 3.906 kB / 476.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.213e-05/0.148, allocations: 7.969 kB / 476.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.148, allocations: 4 kB / 476.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.148, allocations: 0 / 476.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.148, allocations: 0 / 476.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003642/0.1484, allocations: 374.5 kB / 476.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1484, allocations: 0 / 476.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.02e-05/0.1484, allocations: 15.92 kB / 476.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1484, allocations: 0 / 476.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.1485, allocations: 4.5 kB / 476.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.1485, allocations: 4 kB / 476.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1485, allocations: 0 / 476.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00016/0.1486, allocations: 167.4 kB / 476.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.223e-05/0.1487, allocations: 89 kB / 476.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.1487, allocations: 0 / 476.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.299e-05/0.1488, allocations: 7.984 kB / 476.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.928e-05/0.1488, allocations: 4 kB / 476.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.1488, allocations: 0 / 476.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.654e-05/0.1489, allocations: 87.27 kB / 476.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1489, allocations: 0 / 476.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002244/0.1491, allocations: 39.69 kB / 476.9 MB, free: 8.031 MB / 350.1 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.0004762/0.1496, allocations: 0.7007 MB / 477.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000121/0.1497, allocations: 43.97 kB / 477.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1498, allocations: 0 / 477.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.389e-05/0.1498, allocations: 20 kB / 477.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.1501, allocations: 11.98 kB / 477.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.1512, allocations: 0.6539 MB / 478.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.1516, allocations: 0.7355 MB / 479.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.067e-05/0.1517, allocations: 7.984 kB / 479.1 MB, free: 5.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.364e-05/0.1518, allocations: 47.42 kB / 479.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1518, allocations: 0 / 479.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01169/0.1635, allocations: 1.698 MB / 480.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/0.1637, allocations: 163 kB / 481 MB, free: 3.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/1.912, allocations: 0 / 481 MB, free: 3.887 MB / 350.1 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