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.001419/0.001419, allocations: 199.7 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 226.5 MB / 245.4 MB, free: 8.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008274/0.0008275, allocations: 100.2 kB / 297.5 MB, free: 6.926 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3235/0.3235, allocations: 44.82 MB / 394.3 MB, free: 35.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003055, allocations: 8 kB / 467.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4038/0.4041, allocations: 62.96 MB / 0.5184 GB, free: 37.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1175/0.5217, allocations: 86.9 MB / 0.6033 GB, free: 2.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.522, allocations: 67.95 kB / 0.6033 GB, free: 2.367 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003442/0.5254, allocations: 1.489 MB / 0.6048 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5254, allocations: 4 kB / 0.6048 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.5255, allocations: 4 kB / 0.6048 GB, free: 0.8633 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.0004559/0.5259, allocations: 407.6 kB / 0.6052 GB, free: 424 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.526, allocations: 8.031 kB / 0.6052 GB, free: 416 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.471e-05/0.526, allocations: 20.73 kB / 0.6052 GB, free: 396 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.5263, allocations: 224.1 kB / 0.6054 GB, free: 132 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.5263, allocations: 12.75 kB / 0.6055 GB, free: 120 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.5264, allocations: 12.38 kB / 0.6055 GB, free: 108 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003619/0.5267, allocations: 208.9 kB / 0.6057 GB, free: 15.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.5267, allocations: 0 / 0.6057 GB, free: 15.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.5268, allocations: 8 kB / 0.6057 GB, free: 15.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.5268, allocations: 4 kB / 0.6057 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000217/0.527, allocations: 131.7 kB / 0.6058 GB, free: 15.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006109/0.5276, allocations: 0.4918 MB / 0.6063 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.851e-05/0.5277, allocations: 46.5 kB / 0.6063 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.756e-05/0.5278, allocations: 32.97 kB / 0.6064 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.5278, allocations: 7.984 kB / 0.6064 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.5279, allocations: 30.56 kB / 0.6064 GB, free: 15.08 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.5279, allocations: 0 / 0.6064 GB, free: 15.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002323/0.5281, allocations: 85.52 kB / 0.6065 GB, free: 14.99 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.5281, allocations: 55.41 kB / 0.6065 GB, free: 14.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.455e-05/0.5282, allocations: 109.8 kB / 0.6066 GB, free: 14.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.5283, allocations: 25.7 kB / 0.6067 GB, free: 14.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.772e-05/0.5283, allocations: 135.9 kB / 0.6068 GB, free: 14.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.5284, allocations: 15.81 kB / 0.6068 GB, free: 14.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/0.5284, allocations: 3.938 kB / 0.6068 GB, free: 14.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.5285, allocations: 314.8 kB / 0.6071 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.126e-05/0.5285, allocations: 15.98 kB / 0.6071 GB, free: 14.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.275e-05/0.5286, allocations: 16 kB / 0.6071 GB, free: 14.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.313e-05/0.5287, allocations: 32.84 kB / 0.6072 GB, free: 14.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5287, allocations: 4 kB / 0.6072 GB, free: 14.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001184/0.5288, allocations: 69.56 kB / 0.6072 GB, free: 14.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.5288, allocations: 7.984 kB / 0.6072 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-06/0.5288, allocations: 4 kB / 0.6072 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.5288, allocations: 0 / 0.6072 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.13e-05/0.5289, allocations: 12 kB / 0.6073 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.5289, allocations: 0 / 0.6073 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.606e-05/0.529, allocations: 3.906 kB / 0.6073 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-06/0.529, allocations: 4 kB / 0.6073 GB, free: 14.12 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 9.721e-05/0.5291, allocations: 141.7 kB / 0.6074 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.258e-05/0.5291, allocations: 4 kB / 0.6074 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.697e-05/0.5292, allocations: 11.97 kB / 0.6074 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.5292, allocations: 0 / 0.6074 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.5292, allocations: 448 / 0.6074 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.5292, allocations: 0 / 0.6074 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003476/0.5295, allocations: 382.4 kB / 0.6078 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.5295, allocations: 0 / 0.6078 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.914e-05/0.5296, allocations: 8 kB / 0.6078 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.5296, allocations: 4 kB / 0.6078 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.5296, allocations: 4 kB / 0.6078 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.5296, allocations: 3.984 kB / 0.6078 GB, free: 13.51 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5296, allocations: 0 / 0.6078 GB, free: 13.51 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001485/0.5298, allocations: 167.3 kB / 0.608 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.956e-05/0.5298, allocations: 77.11 kB / 0.608 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.5298, allocations: 8 kB / 0.608 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.012e-05/0.5299, allocations: 3.984 kB / 0.608 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.5299, allocations: 8 kB / 0.6081 GB, free: 13.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-06/0.53, allocations: 0 / 0.6081 GB, free: 13.22 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.348e-05/0.53, allocations: 87.27 kB / 0.6081 GB, free: 13.13 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.53, allocations: 0 / 0.6081 GB, free: 13.13 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002142/0.5302, allocations: 27.75 kB / 0.6082 GB, free: 13.11 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 0.0001058/0.5303, allocations: 99.66 kB / 0.6083 GB, free: 13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001611/0.5305, allocations: 39.92 kB / 0.6083 GB, free: 12.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.5305, allocations: 0 / 0.6083 GB, free: 12.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.813e-05/0.5306, allocations: 19.98 kB / 0.6083 GB, free: 12.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.5308, allocations: 13.83 kB / 0.6083 GB, free: 12.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005249/0.5314, allocations: 318.6 kB / 0.6086 GB, free: 12.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.5317, allocations: 0.7326 MB / 0.6093 GB, free: 11.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.983e-05/0.5317, allocations: 0 / 0.6093 GB, free: 11.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.372e-05/0.5317, allocations: 11.44 kB / 0.6094 GB, free: 11.82 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5317, allocations: 0 / 0.6094 GB, free: 11.82 MB / 426.7 MB Notification: Performance of Templates: time 0.002574/0.5343, allocations: 0.6054 MB / 0.6099 GB, free: 11.22 MB / 426.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/jenkins1/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