Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008576/0.0008575, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009528/0.0009529, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.3 MB / 246 MB, free: 11.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2268/0.2268, allocations: 45.92 MB / 344.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002705/0.0002705, allocations: 8 kB / 418.2 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1536, allocations: 63.47 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00296/0.1567, allocations: 1.26 MB / 482.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002568/0.157, allocations: 47.83 kB / 482.9 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.98e-05/0.1571, allocations: 0 / 482.9 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001839/0.1573, allocations: 23.86 kB / 483 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.956e-05/0.1574, allocations: 0 / 483 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000147/0.1575, allocations: 15.98 kB / 483 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.1577, allocations: 59.83 kB / 483 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004029/0.1581, allocations: 105.9 kB / 483.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.738e-05/0.1582, allocations: 15.88 kB / 483.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.164e-05/0.1583, allocations: 11.92 kB / 483.2 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.1583, allocations: 4 kB / 483.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.793e-05/0.1584, allocations: 0 / 483.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.922e-05/0.1585, allocations: 59.83 kB / 483.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.206e-05/0.1586, allocations: 45.64 kB / 483.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.1588, allocations: 95.81 kB / 483.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.1588, allocations: 4 kB / 483.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1589, allocations: 0 / 483.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.1589, allocations: 0 / 483.4 MB, free: 3.5 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.0007496/0.1596, allocations: 415.5 kB / 483.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.306e-05/0.1597, allocations: 8.031 kB / 483.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001702/0.1599, allocations: 66.89 kB / 483.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.645e-05/0.16, allocations: 19.77 kB / 483.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.1604, allocations: 218.8 kB / 484.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.1604, allocations: 12.44 kB / 484.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.143e-05/0.1605, allocations: 20 kB / 484.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006448/0.1611, allocations: 211.2 kB / 484.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.1612, allocations: 0 / 484.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.1612, allocations: 4 kB / 484.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.1612, allocations: 8 kB / 484.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000467/0.1617, allocations: 133.7 kB / 484.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.1629, allocations: 0.5217 MB / 485 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/0.1631, allocations: 50.5 kB / 485 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.1633, allocations: 28.97 kB / 485.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.1633, allocations: 0 / 485.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/0.1633, allocations: 38.5 kB / 485.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 2.134e-06/0.1634, allocations: 4 kB / 485.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004151/0.1638, allocations: 85.58 kB / 485.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/0.1639, allocations: 59.3 kB / 485.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.164, allocations: 109.8 kB / 485.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.1641, allocations: 25.7 kB / 485.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.1642, allocations: 144 kB / 485.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.1643, allocations: 19.75 kB / 485.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-06/0.1643, allocations: 0 / 485.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1645, allocations: 318.8 kB / 485.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.398e-05/0.1645, allocations: 12 kB / 485.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.892e-05/0.1646, allocations: 11.98 kB / 485.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.592e-05/0.1647, allocations: 16 kB / 485.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1648, allocations: 0 / 485.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002331/0.165, allocations: 73.58 kB / 486 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.165, allocations: 4 kB / 486 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.1651, allocations: 0 / 486 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.1651, allocations: 0 / 486 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.1652, allocations: 15.94 kB / 486 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.1653, allocations: 0 / 486 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.604e-05/0.1653, allocations: 11.94 kB / 486 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.507e-06/0.1653, allocations: 4 kB / 486 MB, free: 0.6406 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.000175/0.1655, allocations: 129.8 kB / 486.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.1656, allocations: 7.906 kB / 486.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.71e-05/0.1656, allocations: 7.969 kB / 486.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1657, allocations: 0 / 486.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.1657, allocations: 3.984 kB / 486.1 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.1657, allocations: 4 kB / 486.1 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006492/0.1664, allocations: 370.5 kB / 486.5 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1664, allocations: 0 / 486.5 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.791e-05/0.1665, allocations: 15.98 kB / 486.5 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.1665, allocations: 0.5 kB / 486.5 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.1665, allocations: 0 / 486.5 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1665, allocations: 0 / 486.5 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.541e-05/0.1666, allocations: 7.953 kB / 486.5 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003171/0.1669, allocations: 163.5 kB / 486.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.167e-05/0.167, allocations: 84.95 kB / 486.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.167, allocations: 4 kB / 486.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.749e-05/0.1671, allocations: 7.938 kB / 486.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.447e-05/0.1672, allocations: 7.984 kB / 486.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/0.1672, allocations: 3.953 kB / 486.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.707e-05/0.1673, allocations: 87.28 kB / 486.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1673, allocations: 0 / 486.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004308/0.1677, allocations: 31.69 kB / 486.9 MB, free: 15.62 MB / 366.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.0007733/0.1685, allocations: 0.713 MB / 487.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002022/0.1687, allocations: 35.98 kB / 487.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1687, allocations: 0 / 487.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.259e-05/0.1688, allocations: 19.98 kB / 487.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.1693, allocations: 12.55 kB / 487.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.1712, allocations: 0.6692 MB / 488.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005271/0.1717, allocations: 0.7316 MB / 489.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.679e-05/0.1718, allocations: 0 / 489.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.1719, allocations: 51.48 kB / 489.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1719, allocations: 0 / 489.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.1922, allocations: 1.703 MB / 490.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002999/0.1925, allocations: 164.2 kB / 491 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/1.939, allocations: 0 / 491 MB, free: 11.45 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat does not exist to compare? outputFormat=mat