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.0008267/0.0008267, allocations: 96.11 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 200.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.7 MB / 247.5 MB, free: 9.668 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1829/0.1829, allocations: 46.18 MB / 345.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002582/0.0002582, allocations: 8 kB / 420.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1011, allocations: 63.57 MB / 483.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001598/0.1028, allocations: 1.275 MB / 485 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002238/0.103, allocations: 63.75 kB / 485.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.626e-05/0.1031, allocations: 3.938 kB / 485.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.1032, allocations: 11.92 kB / 485.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.006e-05/0.1033, allocations: 7.938 kB / 485.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001229/0.1034, allocations: 19.92 kB / 485.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.022e-05/0.1035, allocations: 63.88 kB / 485.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002471/0.1037, allocations: 123.4 kB / 485.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.242e-05/0.1038, allocations: 19.86 kB / 485.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.564e-05/0.1038, allocations: 11.88 kB / 485.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.1039, allocations: 4 kB / 485.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.133e-05/0.1039, allocations: 0 / 485.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.968e-05/0.1039, allocations: 55.83 kB / 485.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.315e-05/0.104, allocations: 81.3 kB / 485.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001217/0.1042, allocations: 99.81 kB / 485.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1042, allocations: 0 / 485.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1042, allocations: 0 / 485.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.1042, allocations: 4 kB / 485.6 MB, free: 2.266 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.0004335/0.1046, allocations: 399.9 kB / 486 MB, free: 1.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.1047, allocations: 12.88 kB / 486 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.88e-05/0.1047, allocations: 20.66 kB / 486 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.1049, allocations: 216.1 kB / 486.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.105, allocations: 16.75 kB / 486.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.105, allocations: 20.36 kB / 486.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003377/0.1053, allocations: 201.1 kB / 486.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1053, allocations: 3.938 kB / 486.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.1054, allocations: 12 kB / 486.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.1054, allocations: 4 kB / 486.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.1056, allocations: 123.3 kB / 486.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006269/0.1062, allocations: 0.4919 MB / 487.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.527e-05/0.1063, allocations: 46.56 kB / 487.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.726e-05/0.1064, allocations: 32.91 kB / 487.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.1064, allocations: 4 kB / 487.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.1065, allocations: 30.56 kB / 487.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.412e-06/0.1065, allocations: 0 / 487.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002464/0.1067, allocations: 89.52 kB / 487.3 MB, free: 412 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.025e-05/0.1068, allocations: 51.41 kB / 487.3 MB, free: 348 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.575e-05/0.1069, allocations: 109.8 kB / 487.4 MB, free: 228 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.1069, allocations: 29.7 kB / 487.4 MB, free: 192 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.1069, allocations: 139.8 kB / 487.6 MB, free: 48 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.107, allocations: 15.75 kB / 487.6 MB, free: 32 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.388e-05/0.107, allocations: 17.7 kB / 487.6 MB, free: 8 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1071, allocations: 314.8 kB / 487.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.457e-05/0.1072, allocations: 11.98 kB / 487.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.603e-05/0.1072, allocations: 12 kB / 487.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.138e-05/0.1073, allocations: 36.84 kB / 488 MB, free: 15.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1073, allocations: 4 kB / 488 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001294/0.1075, allocations: 77.45 kB / 488.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.1075, allocations: 4 kB / 488.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.1075, allocations: 0 / 488.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.1075, allocations: 0 / 488.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.716e-05/0.1076, allocations: 20.38 kB / 488.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1076, allocations: 320 / 488.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.032e-05/0.1076, allocations: 7.984 kB / 488.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.1077, allocations: 8 kB / 488.1 MB, free: 15.5 MB / 366.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 8.929e-05/0.1077, allocations: 126.4 kB / 488.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.579e-05/0.1078, allocations: 7.938 kB / 488.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.125e-05/0.1078, allocations: 11.95 kB / 488.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1078, allocations: 0 / 488.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1078, allocations: 4 kB / 488.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1078, allocations: 4 kB / 488.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003622/0.1082, allocations: 370.3 kB / 488.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1082, allocations: 0 / 488.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.636e-05/0.1083, allocations: 11.98 kB / 488.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1083, allocations: 0 / 488.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.1083, allocations: 12 kB / 488.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1083, allocations: 0 / 488.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1083, allocations: 3.984 kB / 488.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001643/0.1085, allocations: 167.4 kB / 488.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.244e-05/0.1085, allocations: 81.02 kB / 488.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.1085, allocations: 0 / 488.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.1086, allocations: 8 kB / 488.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.652e-05/0.1086, allocations: 7.984 kB / 488.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.1086, allocations: 4 kB / 488.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.415e-05/0.1087, allocations: 79.28 kB / 489 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1087, allocations: 0 / 489 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002325/0.1089, allocations: 31.78 kB / 489 MB, free: 14.49 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.328e-05/0.109, allocations: 87.25 kB / 489.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001354/0.1091, allocations: 47.84 kB / 489.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1092, allocations: 0 / 489.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.6e-05/0.1092, allocations: 27.92 kB / 489.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.1095, allocations: 8 kB / 489.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005171/0.11, allocations: 376.9 kB / 489.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.1103, allocations: 0.7355 MB / 490.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.385e-05/0.1104, allocations: 11.44 kB / 490.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1104, allocations: 0 / 490.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of Templates: time 0.00248/0.1129, allocations: 1.209 MB / 491.5 MB, free: 11.94 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