Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009479/0.0009481, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009506/0.0009508, allocations: 90.28 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1817/0.1817, allocations: 45.15 MB / 383.8 MB, free: 240 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.777e-05/1.779e-05, allocations: 0 / 453.2 MB, free: 75.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1134, allocations: 63.25 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3774/0.4909, allocations: 86.31 MB / 0.5886 GB, free: 212 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001643/0.4911, allocations: 62.28 kB / 0.5887 GB, free: 180 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003108/0.4942, allocations: 1.483 MB / 0.5902 GB, free: 14.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4942, allocations: 0 / 0.5902 GB, free: 14.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.4942, allocations: 4 kB / 0.5902 GB, free: 14.86 MB / 394.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.0003287/0.4946, allocations: 399.4 kB / 0.5905 GB, free: 14.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.4946, allocations: 12.02 kB / 0.5905 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.459e-05/0.4947, allocations: 23.98 kB / 0.5906 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002029/0.4949, allocations: 217 kB / 0.5908 GB, free: 14.15 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.4949, allocations: 11.94 kB / 0.5908 GB, free: 14.14 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.4949, allocations: 12 kB / 0.5908 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000165/0.4951, allocations: 99.02 kB / 0.5909 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.4953, allocations: 159.7 kB / 0.591 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.4953, allocations: 0 / 0.591 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.4954, allocations: 0 / 0.591 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.4954, allocations: 4 kB / 0.5911 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005103/0.4959, allocations: 477 kB / 0.5915 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.206e-05/0.496, allocations: 33.55 kB / 0.5915 GB, free: 13.42 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.45e-05/0.496, allocations: 16.8 kB / 0.5916 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-06/0.496, allocations: 8 kB / 0.5916 GB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/0.496, allocations: 37.81 kB / 0.5916 GB, free: 13.36 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.496, allocations: 0 / 0.5916 GB, free: 13.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001366/0.4962, allocations: 46.06 kB / 0.5916 GB, free: 13.31 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.4962, allocations: 55.41 kB / 0.5917 GB, free: 13.24 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.366e-05/0.4963, allocations: 96.31 kB / 0.5918 GB, free: 13.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.4963, allocations: 25.7 kB / 0.5918 GB, free: 13.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.61e-05/0.4964, allocations: 136.8 kB / 0.5919 GB, free: 12.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.4964, allocations: 18.73 kB / 0.592 GB, free: 12.97 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/0.4964, allocations: 4 kB / 0.592 GB, free: 12.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.228e-05/0.4965, allocations: 310.8 kB / 0.5923 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.337e-05/0.4965, allocations: 7.062 kB / 0.5923 GB, free: 12.65 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.137e-05/0.4965, allocations: 6.812 kB / 0.5923 GB, free: 12.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.732e-05/0.4966, allocations: 11.89 kB / 0.5923 GB, free: 12.63 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.4966, allocations: 0 / 0.5923 GB, free: 12.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.51e-05/0.4966, allocations: 61.34 kB / 0.5923 GB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.4967, allocations: 4 kB / 0.5923 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.4967, allocations: 4 kB / 0.5923 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.4967, allocations: 0 / 0.5923 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.089e-05/0.4968, allocations: 11.98 kB / 0.5924 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.4968, allocations: 4 kB / 0.5924 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.408e-05/0.4968, allocations: 0 / 0.5924 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.4968, allocations: 4 kB / 0.5924 GB, free: 12.55 MB / 394.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 () * 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 5.745e-05/0.4969, allocations: 104.9 kB / 0.5925 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.987e-05/0.4969, allocations: 0 / 0.5925 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.285e-05/0.4969, allocations: 16.47 kB / 0.5925 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.497, allocations: 0 / 0.5925 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.497, allocations: 4 kB / 0.5925 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.497, allocations: 3.984 kB / 0.5925 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002265/0.4972, allocations: 313.9 kB / 0.5928 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4972, allocations: 0 / 0.5928 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.653e-05/0.4973, allocations: 11.98 kB / 0.5928 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.4973, allocations: 7.938 kB / 0.5928 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.4973, allocations: 4 kB / 0.5928 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4973, allocations: 0 / 0.5928 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4973, allocations: 0 / 0.5928 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.732e-05/0.4974, allocations: 150.1 kB / 0.593 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.15e-05/0.4974, allocations: 81.02 kB / 0.593 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.138e-05/0.4975, allocations: 0 / 0.593 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.127e-05/0.4975, allocations: 4 kB / 0.593 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.147e-05/0.4976, allocations: 4 kB / 0.593 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-06/0.4976, allocations: 7.984 kB / 0.593 GB, free: 11.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.255e-05/0.4976, allocations: 82.53 kB / 0.5931 GB, free: 11.72 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4976, allocations: 0 / 0.5931 GB, free: 11.72 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002198/0.4978, allocations: 23.84 kB / 0.5932 GB, free: 11.7 MB / 394.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 () * 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.342e-05/0.4979, allocations: 87.25 kB / 0.5932 GB, free: 11.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.776e-05/0.498, allocations: 22.81 kB / 0.5933 GB, free: 11.58 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.498, allocations: 0 / 0.5933 GB, free: 11.58 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.145e-05/0.498, allocations: 15.31 kB / 0.5933 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001672/0.4982, allocations: 16.62 kB / 0.5933 GB, free: 11.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003419/0.4986, allocations: 182.7 kB / 0.5935 GB, free: 11.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.4988, allocations: 0.7309 MB / 0.5942 GB, free: 10.61 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.651e-05/0.4989, allocations: 4 kB / 0.5942 GB, free: 10.61 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.444e-05/0.4989, allocations: 7.438 kB / 0.5942 GB, free: 10.6 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4989, allocations: 0 / 0.5942 GB, free: 10.6 MB / 394.7 MB Notification: Performance of Templates: time 0.002265/0.5012, allocations: 0.5683 MB / 0.5947 GB, free: 10.04 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches