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.001139/0.001139, allocations: 96.72 kB / 16.98 MB, free: 5.938 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.000869/0.0008691, allocations: 189.1 kB / 17.88 MB, free: 5.594 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.41/1.41, allocations: 223.2 MB / 241.8 MB, free: 14.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2324/0.2324, allocations: 44.23 MB / 337.1 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000339/0.0003391, allocations: 8 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1339, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002189/0.1361, allocations: 1.229 MB / 472.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001577/0.1363, allocations: 63.77 kB / 472.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.281e-05/0.1364, allocations: 0 / 472.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.1365, allocations: 19.92 kB / 472.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.156e-05/0.1366, allocations: 3.984 kB / 472.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.12e-05/0.1367, allocations: 15.98 kB / 472.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.1368, allocations: 47.84 kB / 472.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002622/0.1371, allocations: 109.9 kB / 473 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.173e-05/0.1371, allocations: 15.88 kB / 473 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.919e-05/0.1371, allocations: 19.86 kB / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.1372, allocations: 4 kB / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.478e-06/0.1372, allocations: 4 kB / 473.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.68e-05/0.1373, allocations: 51.83 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.48e-05/0.1373, allocations: 41.64 kB / 473.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.1374, allocations: 103.8 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1374, allocations: 0 / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1374, allocations: 0 / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.1375, allocations: 0 / 473.3 MB, free: 11.91 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.0005154/0.138, allocations: 403.6 kB / 473.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.138, allocations: 12.03 kB / 473.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.857e-05/0.1381, allocations: 70.81 kB / 473.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.56e-05/0.1382, allocations: 15.81 kB / 473.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.1384, allocations: 222.8 kB / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.1385, allocations: 20.39 kB / 474 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.1385, allocations: 27.94 kB / 474 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003545/0.1389, allocations: 203.2 kB / 474.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1389, allocations: 0 / 474.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.1389, allocations: 12 kB / 474.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.1389, allocations: 8 kB / 474.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/0.1392, allocations: 129.7 kB / 474.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007426/0.1399, allocations: 0.5178 MB / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.947e-05/0.14, allocations: 42.56 kB / 474.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.14, allocations: 0 / 474.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.1401, allocations: 34.5 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 9.42e-07/0.1401, allocations: 0 / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002929/0.1404, allocations: 85.7 kB / 475 MB, free: 9.957 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.1404, allocations: 55.41 kB / 475.1 MB, free: 9.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.83e-05/0.1405, allocations: 105.8 kB / 475.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.1405, allocations: 25.7 kB / 475.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.719e-05/0.1407, allocations: 144 kB / 475.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.1407, allocations: 15.75 kB / 475.4 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.1407, allocations: 4 kB / 475.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1408, allocations: 314.8 kB / 475.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.925e-05/0.1409, allocations: 15.98 kB / 475.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.443e-05/0.1409, allocations: 15.92 kB / 475.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.314e-05/0.141, allocations: 15.95 kB / 475.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.141, allocations: 0 / 475.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001193/0.1411, allocations: 73.59 kB / 475.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.1411, allocations: 4 kB / 475.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1412, allocations: 7.922 kB / 475.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.1412, allocations: 0 / 475.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.071e-05/0.1413, allocations: 8 kB / 475.8 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.1413, allocations: 4 kB / 475.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.297e-05/0.1413, allocations: 0 / 475.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.1413, allocations: 4 kB / 475.8 MB, free: 9.113 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.0001185/0.1414, allocations: 146.2 kB / 476 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.512e-05/0.1415, allocations: 7.906 kB / 476 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.302e-05/0.1415, allocations: 7.969 kB / 476 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1415, allocations: 0 / 476 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1415, allocations: 0 / 476 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1415, allocations: 0 / 476 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003973/0.1419, allocations: 378.9 kB / 476.4 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1419, allocations: 4.062 kB / 476.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.305e-05/0.142, allocations: 19.92 kB / 476.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.142, allocations: 3.938 kB / 476.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.136e-06/0.142, allocations: 0 / 476.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.142, allocations: 0 / 476.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.142, allocations: 0 / 476.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001749/0.1422, allocations: 167.5 kB / 476.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.234e-05/0.1422, allocations: 81.02 kB / 476.6 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.1423, allocations: 4 kB / 476.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.158e-05/0.1423, allocations: 4 kB / 476.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.1424, allocations: 0 / 476.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.1424, allocations: 4 kB / 476.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.816e-05/0.1424, allocations: 87.27 kB / 476.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1424, allocations: 4 kB / 476.7 MB, free: 8.117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002286/0.1427, allocations: 31.69 kB / 476.8 MB, free: 8.086 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.0008165/0.1435, allocations: 0.7163 MB / 477.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.1436, allocations: 36.05 kB / 477.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1437, allocations: 0 / 477.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.953e-05/0.1437, allocations: 23.92 kB / 477.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.1439, allocations: 12 kB / 477.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.1451, allocations: 0.6537 MB / 478.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.1455, allocations: 0.7394 MB / 478.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.459e-05/0.1455, allocations: 7.984 kB / 478.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.06e-05/0.1456, allocations: 43.42 kB / 479 MB, free: 5.754 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1456, allocations: 4.062 kB / 479 MB, free: 5.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01241/0.158, allocations: 1.687 MB / 480.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/0.1583, allocations: 158.4 kB / 480.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/1.761, allocations: 0 / 480.8 MB, free: 3.934 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