Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) 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_trunk_cpp_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_trunk_cpp_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 194.6 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 244.1 MB, free: 8.117 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007361/0.0007362, allocations: 101.4 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3037/0.3037, allocations: 44.82 MB / 392.9 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.0002691, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3068, allocations: 62.95 MB / 0.5165 GB, free: 37.09 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1025/0.4093, allocations: 86.91 MB / 0.6013 GB, free: 2.496 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000167/0.4095, allocations: 63.97 kB / 0.6014 GB, free: 2.434 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003278/0.4128, allocations: 1.495 MB / 0.6029 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4128, allocations: 0 / 0.6029 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.4128, allocations: 4 kB / 0.6029 GB, free: 0.9297 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.0004117/0.4132, allocations: 411.6 kB / 0.6033 GB, free: 488 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.4133, allocations: 8.031 kB / 0.6033 GB, free: 480 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.391e-05/0.4133, allocations: 16.75 kB / 0.6033 GB, free: 464 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.4136, allocations: 220.1 kB / 0.6035 GB, free: 204 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.4136, allocations: 16.75 kB / 0.6035 GB, free: 188 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.4136, allocations: 20.38 kB / 0.6035 GB, free: 168 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003397/0.414, allocations: 196.8 kB / 0.6037 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.414, allocations: 0 / 0.6037 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.414, allocations: 12 kB / 0.6037 GB, free: 15.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.4141, allocations: 8 kB / 0.6037 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002318/0.4143, allocations: 127.7 kB / 0.6038 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006173/0.4149, allocations: 0.4997 MB / 0.6043 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.196e-05/0.415, allocations: 42.5 kB / 0.6044 GB, free: 15.22 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.283e-05/0.4151, allocations: 28.97 kB / 0.6044 GB, free: 15.19 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.4151, allocations: 0 / 0.6044 GB, free: 15.19 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.4151, allocations: 38.56 kB / 0.6044 GB, free: 15.14 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 9.92e-07/0.4151, allocations: 4 kB / 0.6044 GB, free: 15.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002222/0.4154, allocations: 81.52 kB / 0.6045 GB, free: 15.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.4154, allocations: 51.41 kB / 0.6046 GB, free: 14.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.38e-05/0.4155, allocations: 113.8 kB / 0.6047 GB, free: 14.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.4155, allocations: 25.7 kB / 0.6047 GB, free: 14.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.4156, allocations: 135.9 kB / 0.6048 GB, free: 14.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.4156, allocations: 19.81 kB / 0.6049 GB, free: 14.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-06/0.4156, allocations: 3.938 kB / 0.6049 GB, free: 14.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.4157, allocations: 318.8 kB / 0.6052 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.951e-05/0.4158, allocations: 8 kB / 0.6052 GB, free: 14.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.622e-05/0.4158, allocations: 15.98 kB / 0.6052 GB, free: 14.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.518e-05/0.4159, allocations: 36.84 kB / 0.6052 GB, free: 14.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4159, allocations: 0 / 0.6052 GB, free: 14.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001199/0.416, allocations: 73.56 kB / 0.6053 GB, free: 14.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.4161, allocations: 4 kB / 0.6053 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.4161, allocations: 0 / 0.6053 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.4161, allocations: 0 / 0.6053 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.205e-05/0.4162, allocations: 11.98 kB / 0.6053 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.4162, allocations: 0 / 0.6053 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.749e-05/0.4162, allocations: 11.91 kB / 0.6053 GB, free: 14.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.4162, allocations: 8.438 kB / 0.6053 GB, free: 14.18 MB / 426.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 8.87e-05/0.4163, allocations: 133.8 kB / 0.6055 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.4164, allocations: 0 / 0.6055 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.254e-05/0.4164, allocations: 11.97 kB / 0.6055 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.4164, allocations: 0 / 0.6055 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.4164, allocations: 0 / 0.6055 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.4164, allocations: 7.984 kB / 0.6055 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003467/0.4168, allocations: 374.4 kB / 0.6058 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4168, allocations: 0 / 0.6058 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.397e-05/0.4168, allocations: 12 kB / 0.6058 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.4168, allocations: 0 / 0.6058 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.4168, allocations: 4 kB / 0.6058 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4169, allocations: 0 / 0.6058 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4169, allocations: 0 / 0.6058 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001617/0.417, allocations: 175.3 kB / 0.606 GB, free: 13.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.016e-05/0.4171, allocations: 77.11 kB / 0.6061 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.4171, allocations: 0 / 0.6061 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.264e-05/0.4171, allocations: 7.984 kB / 0.6061 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/0.4172, allocations: 8 kB / 0.6061 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.4172, allocations: 0 / 0.6061 GB, free: 13.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.468e-05/0.4172, allocations: 87.58 kB / 0.6062 GB, free: 13.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4172, allocations: 0 / 0.6062 GB, free: 13.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002224/0.4175, allocations: 31.75 kB / 0.6062 GB, free: 13.17 MB / 426.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 9.515e-05/0.4176, allocations: 99.66 kB / 0.6063 GB, free: 13.06 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001176/0.4177, allocations: 35.86 kB / 0.6063 GB, free: 13.03 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.4177, allocations: 4 kB / 0.6063 GB, free: 13.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.417e-05/0.4178, allocations: 23.98 kB / 0.6064 GB, free: 13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.418, allocations: 10.89 kB / 0.6064 GB, free: 12.99 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000529/0.4186, allocations: 360.2 kB / 0.6067 GB, free: 12.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.4189, allocations: 0.7238 MB / 0.6074 GB, free: 11.86 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.526e-05/0.4189, allocations: 11.44 kB / 0.6074 GB, free: 11.85 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4189, allocations: 0 / 0.6074 GB, free: 11.85 MB / 426.7 MB Notification: Performance of Templates: time 0.002353/0.4213, allocations: 1.229 MB / 0.6086 GB, free: 10.62 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches