Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001236/0.001236, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001256, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2206/0.2206, allocations: 46.1 MB / 344.2 MB, free: 11.58 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002248/0.002248, allocations: 82.55 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1416, allocations: 62.45 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003886/0.1456, allocations: 1.556 MB / 481.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000281/0.1459, allocations: 63.75 kB / 481.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.551e-05/0.146, allocations: 3.938 kB / 481.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.1461, allocations: 23.8 kB / 481.8 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.383e-05/0.1462, allocations: 7.938 kB / 481.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.1463, allocations: 27.91 kB / 481.9 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.1464, allocations: 63.89 kB / 481.9 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002888/0.1467, allocations: 127.4 kB / 482.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.332e-05/0.1468, allocations: 39.86 kB / 482.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.594e-05/0.1469, allocations: 39.84 kB / 482.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.664e-05/0.1469, allocations: 8 kB / 482.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.222e-05/0.1469, allocations: 8 kB / 482.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.147, allocations: 67.81 kB / 482.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.011e-05/0.1471, allocations: 71.61 kB / 482.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001809/0.1473, allocations: 139.5 kB / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1473, allocations: 0 / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1473, allocations: 0 / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.1474, allocations: 0 / 482.4 MB, free: 2.898 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.000582/0.148, allocations: 439.8 kB / 482.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.148, allocations: 12.03 kB / 482.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/0.1481, allocations: 59.08 kB / 482.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/0.1482, allocations: 20.75 kB / 483 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.1484, allocations: 228 kB / 483.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.1484, allocations: 12.81 kB / 483.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.1485, allocations: 20.38 kB / 483.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003945/0.1489, allocations: 207.6 kB / 483.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1489, allocations: 7.938 kB / 483.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.1489, allocations: 4 kB / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1489, allocations: 4 kB / 483.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002467/0.1492, allocations: 129.7 kB / 483.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000741/0.1499, allocations: 0.5216 MB / 484.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.735e-05/0.15, allocations: 42.5 kB / 484.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.349e-05/0.1501, allocations: 36.97 kB / 484.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.1502, allocations: 3.984 kB / 484.2 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.1502, allocations: 34.56 kB / 484.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.1502, allocations: 0 / 484.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002534/0.1505, allocations: 69.67 kB / 484.3 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.1505, allocations: 59.34 kB / 484.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.726e-05/0.1506, allocations: 109.8 kB / 484.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.1507, allocations: 29.7 kB / 484.5 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.219e-05/0.1508, allocations: 147.9 kB / 484.6 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.051e-05/0.1508, allocations: 19.73 kB / 484.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/0.1508, allocations: 13.72 kB / 484.6 MB, free: 496 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.151, allocations: 322.8 kB / 484.9 MB, free: 164 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.29e-05/0.151, allocations: 7.984 kB / 485 MB, free: 156 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.716e-05/0.1511, allocations: 15.98 kB / 485 MB, free: 140 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.362e-05/0.1512, allocations: 36.84 kB / 485 MB, free: 100 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1512, allocations: 3.938 kB / 485 MB, free: 96 kB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001216/0.1513, allocations: 61.62 kB / 485.1 MB, free: 28 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1513, allocations: 4 kB / 485.1 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1513, allocations: 0 / 485.1 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1514, allocations: 0 / 485.1 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.952e-05/0.1515, allocations: 15.98 kB / 485.1 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1515, allocations: 0 / 485.1 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.873e-05/0.1515, allocations: 7.906 kB / 485.1 MB, free: 0 / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.1515, allocations: 4.047 kB / 485.1 MB, free: 15.99 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.1517, allocations: 141.8 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.233e-05/0.1517, allocations: 0 / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.222e-05/0.1517, allocations: 3.969 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1517, allocations: 4 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.1517, allocations: 3.938 kB / 485.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.1517, allocations: 0 / 485.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000409/0.1522, allocations: 374.9 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1522, allocations: 4.062 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.591e-05/0.1522, allocations: 11.98 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1522, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.1522, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1523, allocations: 4 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1523, allocations: 3.938 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001837/0.1525, allocations: 171.4 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.1525, allocations: 77.11 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1525, allocations: 0 / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.531e-05/0.1526, allocations: 4 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.41e-05/0.1526, allocations: 3.938 kB / 485.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.1526, allocations: 0 / 485.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.353e-05/0.1527, allocations: 91.27 kB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1527, allocations: 0 / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002292/0.1529, allocations: 31.69 kB / 486 MB, free: 14.98 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000583/0.1535, allocations: 0.7084 MB / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001406/0.1537, allocations: 36.05 kB / 486.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1537, allocations: 4 kB / 486.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.102e-05/0.1537, allocations: 15.98 kB / 486.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.154, allocations: 19.52 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00163/0.1557, allocations: 1.453 MB / 488.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.1561, allocations: 0.7275 MB / 489 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.68e-05/0.1561, allocations: 4 kB / 489 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.952e-05/0.1562, allocations: 51.41 kB / 489 MB, free: 11.84 MB / 366.1 MB Notification: Performance of SimCode: time 2.164e-06/0.1562, allocations: 112 / 489 MB, free: 11.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02148/0.1777, allocations: 1.901 MB / 490.9 MB, free: 9.984 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.902/8.079, allocations: 8 kB / 490.9 MB, free: 9.977 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe 2>&1)