Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_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.0008959/0.0008959, allocations: 96.86 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 172.5 kB / 16.58 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.4 MB / 222.7 MB, free: 5.832 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3819/0.3819, allocations: 43.54 MB / 314.6 MB, free: 8.914 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005463/0.0005464, allocations: 20 kB / 384 MB, free: 8.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1342, allocations: 58.85 MB / 442.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002021/0.1363, allocations: 1.24 MB / 444.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001947/0.1365, allocations: 47.84 kB / 444.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.987e-05/0.1366, allocations: 0 / 444.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.1367, allocations: 19.84 kB / 444.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.475e-05/0.1368, allocations: 7.984 kB / 444.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.282e-05/0.1369, allocations: 23.86 kB / 444.2 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.137, allocations: 51.89 kB / 444.3 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000271/0.1373, allocations: 109.9 kB / 444.4 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.368e-05/0.1373, allocations: 19.88 kB / 444.4 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.522e-05/0.1374, allocations: 11.92 kB / 444.4 MB, free: 11.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.1374, allocations: 3.938 kB / 444.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.272e-05/0.1374, allocations: 7.938 kB / 444.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.1376, allocations: 59.88 kB / 444.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.235e-05/0.1377, allocations: 41.64 kB / 444.5 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.1378, allocations: 95.81 kB / 444.6 MB, free: 11.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1378, allocations: 0 / 444.6 MB, free: 11.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1378, allocations: 0 / 444.6 MB, free: 11.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1378, allocations: 0 / 444.6 MB, free: 11.46 MB / 382.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.0005647/0.1384, allocations: 411.6 kB / 445 MB, free: 11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.251e-05/0.1385, allocations: 12.03 kB / 445 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.1386, allocations: 62.88 kB / 445.1 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.076e-05/0.1387, allocations: 27.67 kB / 445.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.139, allocations: 222.7 kB / 445.3 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.139, allocations: 16.42 kB / 445.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.346e-05/0.1391, allocations: 20 kB / 445.4 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005103/0.1396, allocations: 211.2 kB / 445.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.1396, allocations: 0 / 445.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.1397, allocations: 4 kB / 445.6 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.1397, allocations: 4 kB / 445.6 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/0.14, allocations: 137.6 kB / 445.7 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008963/0.1409, allocations: 0.5139 MB / 446.2 MB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.141, allocations: 46.5 kB / 446.3 MB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.556e-05/0.1411, allocations: 28.97 kB / 446.3 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.1412, allocations: 8 kB / 446.3 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.1412, allocations: 30.56 kB / 446.3 MB, free: 9.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 2.324e-06/0.1412, allocations: 0 / 446.3 MB, free: 9.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003384/0.1416, allocations: 85.62 kB / 446.4 MB, free: 9.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.781e-05/0.1417, allocations: 59.34 kB / 446.5 MB, free: 9.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.1418, allocations: 109.8 kB / 446.6 MB, free: 9.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.1418, allocations: 25.7 kB / 446.6 MB, free: 9.238 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.142, allocations: 147.9 kB / 446.7 MB, free: 9.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.741e-05/0.142, allocations: 19.73 kB / 446.8 MB, free: 9.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-06/0.142, allocations: 0 / 446.8 MB, free: 9.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.1422, allocations: 314.8 kB / 447.1 MB, free: 8.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.915e-05/0.1423, allocations: 15.98 kB / 447.1 MB, free: 8.738 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.902e-05/0.1423, allocations: 15.98 kB / 447.1 MB, free: 8.723 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.201e-05/0.1424, allocations: 12 kB / 447.1 MB, free: 8.711 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1424, allocations: 3.938 kB / 447.1 MB, free: 8.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001372/0.1425, allocations: 65.69 kB / 447.2 MB, free: 8.637 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.1426, allocations: 7.984 kB / 447.2 MB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1426, allocations: 3.938 kB / 447.2 MB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1426, allocations: 0 / 447.2 MB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.682e-05/0.1427, allocations: 19.89 kB / 447.2 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.1427, allocations: 0 / 447.2 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.702e-05/0.1428, allocations: 7.906 kB / 447.2 MB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.1428, allocations: 4 kB / 447.2 MB, free: 8.594 MB / 382.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.0001515/0.1429, allocations: 137.8 kB / 447.4 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.143, allocations: 4 kB / 447.4 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.235e-05/0.143, allocations: 7.969 kB / 447.4 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.143, allocations: 0 / 447.4 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.143, allocations: 7.953 kB / 447.4 MB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.143, allocations: 0 / 447.4 MB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004677/0.1435, allocations: 370.5 kB / 447.7 MB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1435, allocations: 0 / 447.7 MB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.783e-05/0.1436, allocations: 11.98 kB / 447.8 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.1436, allocations: 4 kB / 447.8 MB, free: 8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.1436, allocations: 0 / 447.8 MB, free: 8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.1436, allocations: 8.766 kB / 447.8 MB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1436, allocations: 0 / 447.8 MB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002018/0.1438, allocations: 167.4 kB / 447.9 MB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.95e-05/0.1439, allocations: 81.05 kB / 448 MB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.1439, allocations: 4 kB / 448 MB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.625e-05/0.144, allocations: 8 kB / 448 MB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.647e-05/0.144, allocations: 7.938 kB / 448 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.1441, allocations: 4 kB / 448 MB, free: 7.691 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.437e-05/0.1441, allocations: 87.27 kB / 448.1 MB, free: 7.605 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1441, allocations: 0 / 448.1 MB, free: 7.605 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00024/0.1444, allocations: 31.69 kB / 448.2 MB, free: 7.574 MB / 382.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.0005896/0.145, allocations: 0.7124 MB / 448.9 MB, free: 6.836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001501/0.1451, allocations: 35.98 kB / 448.9 MB, free: 6.801 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1452, allocations: 0 / 448.9 MB, free: 6.801 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.225e-05/0.1452, allocations: 23.98 kB / 448.9 MB, free: 6.777 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.1456, allocations: 15.95 kB / 448.9 MB, free: 6.762 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.1468, allocations: 0.6539 MB / 449.6 MB, free: 6.051 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.1472, allocations: 0.7356 MB / 450.3 MB, free: 5.289 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.004e-05/0.1473, allocations: 11.91 kB / 450.3 MB, free: 5.277 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.523e-05/0.1474, allocations: 47.42 kB / 450.4 MB, free: 5.23 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1474, allocations: 0 / 450.4 MB, free: 5.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0121/0.1595, allocations: 1.685 MB / 452.1 MB, free: 3.57 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/0.1597, allocations: 165.9 kB / 452.2 MB, free: 3.328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/1.799, allocations: 0 / 452.2 MB, free: 3.328 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat does not exist to compare? outputFormat=mat