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.0008908/0.0008908, allocations: 95.77 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009704/0.0009705, allocations: 206.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2136/0.2136, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003131, allocations: 12 kB / 418 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1556, allocations: 63.47 MB / 481.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001905/0.1576, allocations: 1.256 MB / 482.8 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001481/0.1578, allocations: 51.78 kB / 482.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.1578, allocations: 4 kB / 482.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.158, allocations: 19.86 kB / 482.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.396e-05/0.158, allocations: 11.92 kB / 482.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.275e-05/0.1581, allocations: 15.98 kB / 482.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.307e-05/0.1582, allocations: 39.95 kB / 482.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.1585, allocations: 101.9 kB / 483 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.667e-05/0.1585, allocations: 19.84 kB / 483 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.446e-05/0.1586, allocations: 19.88 kB / 483.1 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.1586, allocations: 4 kB / 483.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.846e-06/0.1586, allocations: 0 / 483.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.669e-05/0.1587, allocations: 55.88 kB / 483.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.298e-05/0.1587, allocations: 41.64 kB / 483.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.1589, allocations: 95.83 kB / 483.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.1589, allocations: 4 kB / 483.3 MB, free: 3.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1589, allocations: 0 / 483.3 MB, free: 3.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.1589, allocations: 0 / 483.3 MB, free: 3.508 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.0004992/0.1594, allocations: 415.5 kB / 483.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.1594, allocations: 8.031 kB / 483.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.898e-05/0.1595, allocations: 62.89 kB / 483.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.567e-05/0.1596, allocations: 27.75 kB / 483.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.1598, allocations: 214.8 kB / 484 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.1599, allocations: 16.44 kB / 484 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.1599, allocations: 16 kB / 484 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003641/0.1603, allocations: 203.2 kB / 484.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1603, allocations: 4 kB / 484.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.1603, allocations: 12 kB / 484.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.1603, allocations: 4 kB / 484.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.1606, allocations: 133.7 kB / 484.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006751/0.1613, allocations: 0.5217 MB / 484.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.592e-05/0.1614, allocations: 46.5 kB / 484.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.1614, allocations: 4 kB / 484.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.1614, allocations: 30.56 kB / 484.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.1614, allocations: 4 kB / 484.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002434/0.1617, allocations: 77.7 kB / 485 MB, free: 1.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.1617, allocations: 59.34 kB / 485.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.1618, allocations: 113.8 kB / 485.2 MB, free: 1.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.1619, allocations: 25.7 kB / 485.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.1619, allocations: 136 kB / 485.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.396e-05/0.162, allocations: 23.75 kB / 485.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.162, allocations: 3.938 kB / 485.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1622, allocations: 314.8 kB / 485.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.86e-05/0.1622, allocations: 16 kB / 485.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.645e-05/0.1623, allocations: 15.92 kB / 485.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.263e-05/0.1623, allocations: 12 kB / 485.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1623, allocations: 4 kB / 485.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001288/0.1625, allocations: 69.58 kB / 485.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1625, allocations: 8 kB / 485.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1625, allocations: 0 / 485.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1625, allocations: 0 / 485.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.914e-05/0.1626, allocations: 11.94 kB / 485.8 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.1626, allocations: 3.984 kB / 485.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.746e-05/0.1626, allocations: 7.953 kB / 485.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.1627, allocations: 4 kB / 485.8 MB, free: 0.6914 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.000106/0.1628, allocations: 133.8 kB / 486 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.13e-05/0.1628, allocations: 3.906 kB / 486 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.1628, allocations: 15.95 kB / 486 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1628, allocations: 0 / 486 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1628, allocations: 448 / 486 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1629, allocations: 0 / 486 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003846/0.1632, allocations: 382.5 kB / 486.4 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1633, allocations: 0 / 486.4 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.97e-05/0.1633, allocations: 8 kB / 486.4 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1633, allocations: 0 / 486.4 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.1633, allocations: 4 kB / 486.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1633, allocations: 0 / 486.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1633, allocations: 0 / 486.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001942/0.1635, allocations: 163.5 kB / 486.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.398e-05/0.1636, allocations: 88.95 kB / 486.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.1636, allocations: 0 / 486.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.605e-05/0.1637, allocations: 11.98 kB / 486.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.186e-05/0.1637, allocations: 0 / 486.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.1637, allocations: 0 / 486.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.249e-05/0.1638, allocations: 99.22 kB / 486.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1638, allocations: 0 / 486.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000225/0.164, allocations: 31.69 kB / 486.8 MB, free: 15.67 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.0005314/0.1645, allocations: 0.7052 MB / 487.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001292/0.1647, allocations: 35.98 kB / 487.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1647, allocations: 0 / 487.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.922e-05/0.1648, allocations: 31.86 kB / 487.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002071/0.165, allocations: 8 kB / 487.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.1661, allocations: 0.6615 MB / 488.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.1665, allocations: 0.7399 MB / 488.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.15e-05/0.1666, allocations: 4 kB / 488.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.41e-05/0.1666, allocations: 51.48 kB / 489 MB, free: 13.34 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1666, allocations: 0 / 489 MB, free: 13.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01155/0.1782, allocations: 1.685 MB / 490.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.1784, allocations: 155 kB / 490.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.619/1.797, allocations: 3.938 kB / 490.8 MB, free: 11.52 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