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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_4.0.0_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_4.0.0_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008195/0.0008195, allocations: 94.12 kB / 292.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3182/0.3182, allocations: 44.21 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003154, allocations: 8 kB / 459.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3006, allocations: 61.89 MB / 0.5096 GB, free: 38.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.4083, allocations: 86 MB / 0.5935 GB, free: 9.141 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.4086, allocations: 59.97 kB / 0.5936 GB, free: 9.082 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003376/0.412, allocations: 1.496 MB / 0.5951 GB, free: 7.582 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.412, allocations: 0 / 0.5951 GB, free: 7.582 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.412, allocations: 4 kB / 0.5951 GB, free: 7.578 MB / 410.7 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.0003773/0.4124, allocations: 407.3 kB / 0.5954 GB, free: 7.129 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4125, allocations: 8.25 kB / 0.5955 GB, free: 7.121 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.827e-05/0.4125, allocations: 15.81 kB / 0.5955 GB, free: 7.105 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002604/0.4128, allocations: 230.7 kB / 0.5957 GB, free: 6.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.4128, allocations: 28.27 kB / 0.5957 GB, free: 6.812 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.4128, allocations: 16 kB / 0.5957 GB, free: 6.797 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003303/0.4132, allocations: 188.6 kB / 0.5959 GB, free: 6.609 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.4132, allocations: 7.984 kB / 0.5959 GB, free: 6.602 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.4132, allocations: 4 kB / 0.5959 GB, free: 6.598 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.203e-05/0.4133, allocations: 8 kB / 0.5959 GB, free: 6.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.4135, allocations: 127.7 kB / 0.5961 GB, free: 6.465 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.4142, allocations: 499.7 kB / 0.5965 GB, free: 5.926 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.4143, allocations: 50.52 kB / 0.5966 GB, free: 5.867 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.4143, allocations: 128 / 0.5966 GB, free: 5.867 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.4144, allocations: 38.55 kB / 0.5966 GB, free: 5.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.4144, allocations: 0 / 0.5966 GB, free: 5.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002704/0.4147, allocations: 73.62 kB / 0.5967 GB, free: 5.742 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.4147, allocations: 63.39 kB / 0.5967 GB, free: 5.668 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.4148, allocations: 100.9 kB / 0.5968 GB, free: 5.562 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.4149, allocations: 25.7 kB / 0.5969 GB, free: 5.531 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.594e-05/0.415, allocations: 132 kB / 0.597 GB, free: 5.398 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/0.415, allocations: 23.7 kB / 0.597 GB, free: 5.375 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-06/0.415, allocations: 0 / 0.597 GB, free: 5.375 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4151, allocations: 314.8 kB / 0.5973 GB, free: 5.059 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.554e-05/0.4152, allocations: 11.98 kB / 0.5973 GB, free: 5.047 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.477e-05/0.4152, allocations: 16 kB / 0.5973 GB, free: 5.031 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.058e-05/0.4153, allocations: 19.92 kB / 0.5974 GB, free: 5.012 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4153, allocations: 0 / 0.5974 GB, free: 5.012 MB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001257/0.4154, allocations: 65.62 kB / 0.5974 GB, free: 4.941 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.4155, allocations: 9.516 kB / 0.5974 GB, free: 4.934 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4155, allocations: 3.938 kB / 0.5974 GB, free: 4.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.4155, allocations: 8 kB / 0.5974 GB, free: 4.922 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.683e-05/0.4156, allocations: 11.98 kB / 0.5975 GB, free: 4.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.4156, allocations: 0 / 0.5975 GB, free: 4.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.85e-05/0.4157, allocations: 4 kB / 0.5975 GB, free: 4.906 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.4157, allocations: 0 / 0.5975 GB, free: 4.906 MB / 410.7 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.000117/0.4158, allocations: 137.8 kB / 0.5976 GB, free: 4.762 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.617e-05/0.4158, allocations: 7.906 kB / 0.5976 GB, free: 4.754 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.4159, allocations: 11.92 kB / 0.5976 GB, free: 4.742 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4159, allocations: 4 kB / 0.5976 GB, free: 4.738 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4159, allocations: 4 kB / 0.5976 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.4159, allocations: 0 / 0.5976 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000344/0.4162, allocations: 370.9 kB / 0.598 GB, free: 4.316 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.4162, allocations: 0 / 0.598 GB, free: 4.316 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.499e-05/0.4163, allocations: 20 kB / 0.598 GB, free: 4.297 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.4163, allocations: 4 kB / 0.598 GB, free: 4.293 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.4163, allocations: 8 kB / 0.598 GB, free: 4.285 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.4163, allocations: 0 / 0.598 GB, free: 4.285 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.4163, allocations: 0 / 0.598 GB, free: 4.285 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.4165, allocations: 163.4 kB / 0.5982 GB, free: 4.109 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.612e-05/0.4165, allocations: 81.11 kB / 0.5982 GB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.4166, allocations: 3.953 kB / 0.5982 GB, free: 4.008 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.325e-05/0.4166, allocations: 11.98 kB / 0.5983 GB, free: 3.996 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.114e-05/0.4167, allocations: 4 kB / 0.5983 GB, free: 3.992 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.4167, allocations: 0 / 0.5983 GB, free: 3.992 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.876e-05/0.4167, allocations: 87.27 kB / 0.5983 GB, free: 3.906 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4167, allocations: 0 / 0.5983 GB, free: 3.906 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002248/0.4169, allocations: 27.75 kB / 0.5984 GB, free: 3.879 MB / 410.7 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 8.895e-05/0.417, allocations: 91.25 kB / 0.5985 GB, free: 3.781 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001213/0.4172, allocations: 39.92 kB / 0.5985 GB, free: 3.742 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.4172, allocations: 0 / 0.5985 GB, free: 3.742 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.834e-05/0.4172, allocations: 23.98 kB / 0.5985 GB, free: 3.719 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001691/0.4174, allocations: 11.94 kB / 0.5985 GB, free: 3.707 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005973/0.418, allocations: 318.6 kB / 0.5988 GB, free: 3.371 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/0.4184, allocations: 0.7316 MB / 0.5995 GB, free: 2.613 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.489e-05/0.4184, allocations: 8 kB / 0.5996 GB, free: 2.605 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.303e-05/0.4185, allocations: 11.44 kB / 0.5996 GB, free: 2.594 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4185, allocations: 0 / 0.5996 GB, free: 2.594 MB / 410.7 MB Notification: Performance of Templates: time 0.002361/0.4208, allocations: 0.5966 MB / 0.6001 GB, free: 2.008 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches