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: translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux") translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001184, allocations: 104.8 kB / 16.41 MB, free: 6.488 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.001442/0.001442, allocations: 189.5 kB / 17.34 MB, free: 5.73 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.556/1.556, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2354/0.2354, allocations: 43.51 MB / 314.1 MB, free: 456 kB / 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.001627/0.001627, allocations: 65.47 kB / 441.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1321, allocations: 57.79 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003022/0.1352, allocations: 1.55 MB / 0.4894 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001905/0.1354, allocations: 47.78 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.744e-05/0.1355, allocations: 4 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.1356, allocations: 23.84 kB / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.156e-05/0.1357, allocations: 3.938 kB / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.245e-05/0.1358, allocations: 15.98 kB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.1359, allocations: 71.81 kB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000307/0.1362, allocations: 139.2 kB / 0.4897 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.887e-05/0.1363, allocations: 35.92 kB / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.703e-05/0.1364, allocations: 39.78 kB / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.1364, allocations: 8 kB / 0.4898 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.827e-05/0.1364, allocations: 12 kB / 0.4898 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.562e-05/0.1365, allocations: 67.88 kB / 0.4898 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.766e-05/0.1366, allocations: 63.61 kB / 0.4899 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.1368, allocations: 151.4 kB / 0.49 GB, free: 9.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1368, allocations: 3.984 kB / 0.4901 GB, free: 9.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1368, allocations: 0 / 0.4901 GB, free: 9.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.1368, allocations: 0 / 0.4901 GB, free: 9.539 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.0005516/0.1374, allocations: 431.5 kB / 0.4905 GB, free: 9.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.1374, allocations: 15.88 kB / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.613e-05/0.1375, allocations: 24.66 kB / 0.4905 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.1378, allocations: 212.2 kB / 0.4907 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.1378, allocations: 12.75 kB / 0.4907 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.1378, allocations: 20.38 kB / 0.4907 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.1382, allocations: 189.1 kB / 0.4909 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.1382, allocations: 3.938 kB / 0.4909 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.1382, allocations: 12 kB / 0.4909 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.1383, allocations: 7.984 kB / 0.4909 GB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002138/0.1385, allocations: 127 kB / 0.4911 GB, free: 8.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006387/0.1391, allocations: 0.4919 MB / 0.4915 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.1392, allocations: 42.5 kB / 0.4916 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.449e-05/0.1393, allocations: 28.91 kB / 0.4916 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.1393, allocations: 4 kB / 0.4916 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.1394, allocations: 38.56 kB / 0.4916 GB, free: 7.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 2.685e-06/0.1394, allocations: 0 / 0.4916 GB, free: 7.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002511/0.1396, allocations: 77.52 kB / 0.4917 GB, free: 7.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.1397, allocations: 51.41 kB / 0.4918 GB, free: 7.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.55e-05/0.1398, allocations: 117.8 kB / 0.4919 GB, free: 7.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.1398, allocations: 25.7 kB / 0.4919 GB, free: 7.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/0.1399, allocations: 143.8 kB / 0.492 GB, free: 7.297 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.1399, allocations: 11.81 kB / 0.4921 GB, free: 7.285 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.1399, allocations: 17.72 kB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.685e-05/0.14, allocations: 318.8 kB / 0.4924 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.932e-05/0.1401, allocations: 8 kB / 0.4924 GB, free: 6.934 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.813e-05/0.1401, allocations: 11.98 kB / 0.4924 GB, free: 6.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.445e-05/0.1402, allocations: 37.22 kB / 0.4924 GB, free: 6.883 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1402, allocations: 4 kB / 0.4924 GB, free: 6.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00012/0.1403, allocations: 69.53 kB / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.1404, allocations: 4 kB / 0.4925 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1404, allocations: 3.938 kB / 0.4925 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.1404, allocations: 0 / 0.4925 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.046e-05/0.1405, allocations: 11.98 kB / 0.4925 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.1405, allocations: 0 / 0.4925 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.594e-05/0.1405, allocations: 4 kB / 0.4925 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-06/0.1405, allocations: 0 / 0.4925 GB, free: 6.781 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.1407, allocations: 145.8 kB / 0.4927 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.51e-05/0.1407, allocations: 3.938 kB / 0.4927 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.693e-05/0.1407, allocations: 7.969 kB / 0.4927 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1407, allocations: 4 kB / 0.4927 GB, free: 6.609 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1407, allocations: 0 / 0.4927 GB, free: 6.609 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1407, allocations: 0 / 0.4927 GB, free: 6.609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003649/0.1411, allocations: 370.3 kB / 0.493 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1411, allocations: 0 / 0.493 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.307e-05/0.1412, allocations: 12 kB / 0.493 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.1412, allocations: 0 / 0.493 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.1412, allocations: 0 / 0.493 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1412, allocations: 4 kB / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1412, allocations: 0 / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/0.1414, allocations: 163.6 kB / 0.4932 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.776e-05/0.1415, allocations: 89.02 kB / 0.4933 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.1415, allocations: 0 / 0.4933 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.167e-05/0.1415, allocations: 15.92 kB / 0.4933 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.817e-05/0.1416, allocations: 0 / 0.4933 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-06/0.1416, allocations: 0 / 0.4933 GB, free: 5.879 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.67e-05/0.1416, allocations: 95.25 kB / 0.4934 GB, free: 5.785 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1416, allocations: 0 / 0.4934 GB, free: 5.785 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.1419, allocations: 19.84 kB / 0.4934 GB, free: 5.766 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 (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.0001078/0.142, allocations: 95.25 kB / 0.4935 GB, free: 5.664 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000139/0.1421, allocations: 35.92 kB / 0.4935 GB, free: 5.629 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1421, allocations: 0 / 0.4935 GB, free: 5.629 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.842e-05/0.1422, allocations: 23.92 kB / 0.4936 GB, free: 5.605 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.1425, allocations: 15.94 kB / 0.4936 GB, free: 5.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00054/0.1431, allocations: 267.3 kB / 0.4938 GB, free: 5.301 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.1434, allocations: 0.7273 MB / 0.4945 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.542e-05/0.1434, allocations: 8 kB / 0.4946 GB, free: 4.539 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.463e-05/0.1435, allocations: 7.438 kB / 0.4946 GB, free: 4.531 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1435, allocations: 4 kB / 0.4946 GB, free: 4.527 MB / 382.1 MB Notification: Performance of Templates: time 0.003156/0.1466, allocations: 0.6769 MB / 0.4952 GB, free: 3.852 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches