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.001095/0.001095, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 227.4 MB / 247.5 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1889/0.1889, allocations: 46.1 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 83.86 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.09934, allocations: 62.45 MB / 481.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002484/0.1019, allocations: 1.552 MB / 483 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001945/0.1021, allocations: 67.75 kB / 483.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.742e-05/0.1021, allocations: 4 kB / 483.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.1023, allocations: 19.86 kB / 483.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.447e-05/0.1023, allocations: 3.938 kB / 483.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001166/0.1024, allocations: 27.91 kB / 483.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.836e-05/0.1025, allocations: 67.81 kB / 483.2 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/0.1027, allocations: 127.4 kB / 483.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.216e-05/0.1028, allocations: 39.84 kB / 483.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.92e-05/0.1029, allocations: 39.84 kB / 483.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.1029, allocations: 8 kB / 483.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.775e-05/0.1029, allocations: 8 kB / 483.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.395e-05/0.103, allocations: 75.8 kB / 483.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.409e-05/0.1031, allocations: 67.61 kB / 483.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.1032, allocations: 147.4 kB / 483.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1032, allocations: 0 / 483.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1032, allocations: 0 / 483.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.1032, allocations: 0 / 483.7 MB, free: 2.297 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.0004059/0.1037, allocations: 439.5 kB / 484.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/0.1037, allocations: 8.031 kB / 484.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.539e-05/0.1037, allocations: 16.75 kB / 484.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001944/0.1039, allocations: 220.1 kB / 484.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.104, allocations: 16.75 kB / 484.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.104, allocations: 16.38 kB / 484.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002882/0.1043, allocations: 197.1 kB / 484.6 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1043, allocations: 7.875 kB / 484.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.1043, allocations: 8 kB / 484.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1043, allocations: 4 kB / 484.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.1045, allocations: 119.3 kB / 484.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005222/0.1051, allocations: 499.8 kB / 485.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.948e-05/0.1051, allocations: 46.5 kB / 485.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.627e-05/0.1052, allocations: 32.91 kB / 485.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.1052, allocations: 3.938 kB / 485.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.1053, allocations: 38.56 kB / 485.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.163e-06/0.1053, allocations: 0 / 485.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.000208/0.1055, allocations: 77.61 kB / 485.4 MB, free: 428 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/0.1055, allocations: 51.41 kB / 485.5 MB, free: 364 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.406e-05/0.1056, allocations: 109.8 kB / 485.6 MB, free: 244 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.1056, allocations: 25.7 kB / 485.6 MB, free: 212 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.568e-05/0.1057, allocations: 135.9 kB / 485.7 MB, free: 72 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.1057, allocations: 19.75 kB / 485.7 MB, free: 52 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.684e-05/0.1057, allocations: 17.7 kB / 485.8 MB, free: 28 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.953e-05/0.1058, allocations: 318.8 kB / 486.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.748e-05/0.1059, allocations: 7.984 kB / 486.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.834e-05/0.1059, allocations: 12 kB / 486.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.701e-05/0.106, allocations: 32.84 kB / 486.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.106, allocations: 0 / 486.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001068/0.1061, allocations: 81.45 kB / 486.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.1061, allocations: 4 kB / 486.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1061, allocations: 4.297 kB / 486.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.1062, allocations: 0 / 486.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.617e-05/0.1062, allocations: 8 kB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1062, allocations: 4 kB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.556e-05/0.1063, allocations: 3.984 kB / 486.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.1063, allocations: 3.984 kB / 486.2 MB, free: 15.54 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.427e-05/0.1064, allocations: 137.8 kB / 486.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.1064, allocations: 7.844 kB / 486.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.069e-05/0.1064, allocations: 11.95 kB / 486.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1064, allocations: 3.938 kB / 486.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1064, allocations: 0 / 486.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1064, allocations: 448 / 486.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.1068, allocations: 366.5 kB / 486.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1068, allocations: 0 / 486.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.199e-05/0.1068, allocations: 15.98 kB / 486.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1068, allocations: 4 kB / 486.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-06/0.1068, allocations: 0 / 486.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1069, allocations: 0 / 486.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1069, allocations: 0 / 486.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.107, allocations: 163.4 kB / 486.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.981e-05/0.107, allocations: 81.02 kB / 487 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.1071, allocations: 8 kB / 487 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.258e-05/0.1071, allocations: 4 kB / 487 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.45e-05/0.1071, allocations: 3.984 kB / 487 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.1071, allocations: 4 kB / 487 MB, free: 14.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.304e-05/0.1072, allocations: 87.22 kB / 487.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1072, allocations: 0 / 487.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00022/0.1074, allocations: 31.69 kB / 487.1 MB, free: 14.53 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 7.824e-05/0.1075, allocations: 95.23 kB / 487.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.1076, allocations: 39.86 kB / 487.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1076, allocations: 4 kB / 487.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.801e-05/0.1077, allocations: 15.98 kB / 487.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.108, allocations: 10.53 kB / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004293/0.1084, allocations: 259.8 kB / 487.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.1087, allocations: 0.7314 MB / 488.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.896e-05/0.1087, allocations: 8 kB / 488.3 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.154e-05/0.1087, allocations: 11.44 kB / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1087, allocations: 0 / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of Templates: time 0.002524/0.1112, allocations: 0.6198 MB / 488.9 MB, free: 12.69 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 -s gbode -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