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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001168/0.001169, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 227.4 MB / 246.9 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2019/0.2019, allocations: 46.11 MB / 344.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 77.95 kB / 417.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1055, allocations: 62.44 MB / 479.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002582/0.1081, allocations: 1.633 MB / 481.6 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001933/0.1083, allocations: 59.78 kB / 481.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.023e-05/0.1084, allocations: 0 / 481.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.1085, allocations: 15.91 kB / 481.6 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.572e-05/0.1086, allocations: 11.92 kB / 481.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000113/0.1087, allocations: 19.98 kB / 481.7 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.476e-05/0.1088, allocations: 63.83 kB / 481.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.109, allocations: 123.4 kB / 481.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.173e-05/0.1091, allocations: 35.91 kB / 481.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.212e-05/0.1091, allocations: 35.84 kB / 481.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.1092, allocations: 8 kB / 481.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.871e-05/0.1092, allocations: 8 kB / 481.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.042e-05/0.1093, allocations: 67.81 kB / 482 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.552e-05/0.1093, allocations: 63.61 kB / 482.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.1094, allocations: 99.86 kB / 482.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1095, allocations: 0 / 482.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1095, allocations: 0 / 482.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1095, allocations: 0 / 482.2 MB, free: 3.477 MB / 350.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.0005267/0.11, allocations: 443.7 kB / 482.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.11, allocations: 12.86 kB / 482.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.44e-05/0.1101, allocations: 20.75 kB / 482.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.1103, allocations: 216 kB / 482.8 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.1103, allocations: 16.75 kB / 482.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.1103, allocations: 20.38 kB / 482.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003188/0.1107, allocations: 193.1 kB / 483.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.1107, allocations: 3.938 kB / 483.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.1107, allocations: 8 kB / 483.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.1107, allocations: 4 kB / 483.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.1109, allocations: 127.3 kB / 483.2 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005576/0.1115, allocations: 0.4919 MB / 483.7 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.366e-05/0.1116, allocations: 38.56 kB / 483.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.969e-05/0.1117, allocations: 32.91 kB / 483.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.1117, allocations: 0 / 483.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.1117, allocations: 42.5 kB / 483.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 9.62e-07/0.1117, allocations: 0 / 483.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002168/0.1119, allocations: 69.67 kB / 483.9 MB, free: 1.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.112, allocations: 55.41 kB / 483.9 MB, free: 1.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.142e-05/0.1121, allocations: 109.8 kB / 484 MB, free: 1.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.1121, allocations: 29.64 kB / 484.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.053e-05/0.1121, allocations: 135.9 kB / 484.2 MB, free: 1.242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.1122, allocations: 19.73 kB / 484.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.902e-05/0.1122, allocations: 21.66 kB / 484.2 MB, free: 1.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.216e-05/0.1123, allocations: 318.8 kB / 484.5 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.985e-05/0.1124, allocations: 7.984 kB / 484.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.277e-05/0.1124, allocations: 15.98 kB / 484.6 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.558e-05/0.1125, allocations: 36.78 kB / 484.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1125, allocations: 0 / 484.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001167/0.1126, allocations: 69.91 kB / 484.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.1126, allocations: 4 kB / 484.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1126, allocations: 0 / 484.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.1127, allocations: 0 / 484.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.586e-05/0.1127, allocations: 16.05 kB / 484.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1128, allocations: 4 kB / 484.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.616e-05/0.1128, allocations: 4 kB / 484.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.1128, allocations: 0 / 484.7 MB, free: 0.7109 MB / 350.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 9.277e-05/0.1129, allocations: 142.3 kB / 484.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.52e-05/0.1129, allocations: 11.84 kB / 484.8 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.99e-05/0.113, allocations: 7.969 kB / 484.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.113, allocations: 0 / 484.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.113, allocations: 0 / 484.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.113, allocations: 0 / 484.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003295/0.1133, allocations: 362.5 kB / 485.2 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1133, allocations: 4 kB / 485.2 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.304e-05/0.1134, allocations: 11.94 kB / 485.2 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.1134, allocations: 4 kB / 485.2 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.81e-06/0.1134, allocations: 0 / 485.2 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1134, allocations: 0 / 485.2 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1134, allocations: 0 / 485.2 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.1137, allocations: 159.5 kB / 485.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.1137, allocations: 81.02 kB / 485.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1137, allocations: 4 kB / 485.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.597e-05/0.1138, allocations: 11.98 kB / 485.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.149e-05/0.1138, allocations: 3.984 kB / 485.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.1138, allocations: 4 kB / 485.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.066e-05/0.1139, allocations: 87.27 kB / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1139, allocations: 0 / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002272/0.1141, allocations: 31.69 kB / 485.6 MB, free: 15.7 MB / 366.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 8.124e-05/0.1142, allocations: 99.12 kB / 485.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000128/0.1143, allocations: 40.05 kB / 485.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1143, allocations: 3.938 kB / 485.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.084e-05/0.1144, allocations: 16.11 kB / 485.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.1147, allocations: 8.547 kB / 485.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004971/0.1152, allocations: 379.2 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.1154, allocations: 0.7238 MB / 486.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.557e-05/0.1155, allocations: 15.42 kB / 486.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1155, allocations: 0 / 486.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of Templates: time 0.002434/0.1179, allocations: 1.225 MB / 488.1 MB, free: 13.14 MB / 366.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches