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.001121/0.001121, allocations: 115.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2084/0.2084, allocations: 46.1 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001374, allocations: 75.88 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1132, allocations: 62.44 MB / 481.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002763/0.116, allocations: 1.564 MB / 483 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002258/0.1163, allocations: 63.75 kB / 483.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.626e-05/0.1163, allocations: 8 kB / 483.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.1165, allocations: 19.8 kB / 483.1 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.405e-05/0.1165, allocations: 3.938 kB / 483.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001239/0.1166, allocations: 23.97 kB / 483.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.1167, allocations: 67.83 kB / 483.2 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.117, allocations: 131.4 kB / 483.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.401e-05/0.1171, allocations: 31.91 kB / 483.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.276e-05/0.1172, allocations: 43.84 kB / 483.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.1172, allocations: 8 kB / 483.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.738e-05/0.1172, allocations: 12 kB / 483.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.168e-05/0.1173, allocations: 63.83 kB / 483.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.223e-05/0.1174, allocations: 67.59 kB / 483.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.1175, allocations: 155.4 kB / 483.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1176, allocations: 0 / 483.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1176, allocations: 0 / 483.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1176, allocations: 0 / 483.7 MB, free: 2.254 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.0004789/0.1181, allocations: 439.4 kB / 484.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.1181, allocations: 8.031 kB / 484.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.398e-05/0.1182, allocations: 20.75 kB / 484.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.1184, allocations: 220 kB / 484.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.1184, allocations: 12.75 kB / 484.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.453e-05/0.1184, allocations: 20.38 kB / 484.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.1188, allocations: 193.1 kB / 484.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1188, allocations: 3.938 kB / 484.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.1188, allocations: 4 kB / 484.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.1188, allocations: 8 kB / 484.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.119, allocations: 123.3 kB / 484.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006223/0.1196, allocations: 495.8 kB / 485.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.907e-05/0.1197, allocations: 38.56 kB / 485.3 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.769e-05/0.1198, allocations: 28.91 kB / 485.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.1198, allocations: 4 kB / 485.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.1198, allocations: 50.47 kB / 485.3 MB, free: 472 kB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.1199, allocations: 0 / 485.3 MB, free: 472 kB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002164/0.1201, allocations: 73.61 kB / 485.4 MB, free: 392 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.1201, allocations: 51.41 kB / 485.5 MB, free: 328 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.448e-05/0.1202, allocations: 109.8 kB / 485.6 MB, free: 208 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.1202, allocations: 29.7 kB / 485.6 MB, free: 172 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.339e-05/0.1203, allocations: 135.9 kB / 485.7 MB, free: 32 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.1203, allocations: 19.73 kB / 485.7 MB, free: 12 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.1204, allocations: 17.8 kB / 485.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.914e-05/0.1205, allocations: 318.8 kB / 486.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.165e-05/0.1205, allocations: 12 kB / 486.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.926e-05/0.1206, allocations: 8.359 kB / 486.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.46e-05/0.1206, allocations: 40.78 kB / 486.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1206, allocations: 7.938 kB / 486.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001093/0.1208, allocations: 69.53 kB / 486.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.1208, allocations: 7.984 kB / 486.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.1208, allocations: 0 / 486.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1208, allocations: 0 / 486.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.194e-05/0.1209, allocations: 12 kB / 486.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.1209, allocations: 0 / 486.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.281e-05/0.1209, allocations: 0 / 486.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.1209, allocations: 4 kB / 486.2 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 9.53e-05/0.121, allocations: 141.8 kB / 486.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.1211, allocations: 7.844 kB / 486.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.123e-05/0.1211, allocations: 11.97 kB / 486.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1211, allocations: 0 / 486.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1211, allocations: 0 / 486.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1211, allocations: 3.984 kB / 486.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003586/0.1215, allocations: 354.5 kB / 486.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1215, allocations: 4 kB / 486.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.093e-05/0.1215, allocations: 19.92 kB / 486.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1216, allocations: 0 / 486.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.1216, allocations: 0 / 486.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1216, allocations: 0 / 486.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1216, allocations: 0 / 486.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001471/0.1217, allocations: 167.6 kB / 486.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.386e-05/0.1218, allocations: 81.02 kB / 487 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.1218, allocations: 4 kB / 487 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.091e-05/0.1219, allocations: 4 kB / 487 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.511e-05/0.1219, allocations: 0 / 487 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-06/0.1219, allocations: 4 kB / 487 MB, free: 14.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.047e-05/0.1219, allocations: 91.56 kB / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1219, allocations: 0 / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002234/0.1222, allocations: 31.69 kB / 487.1 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 9.132e-05/0.1223, allocations: 103.1 kB / 487.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.1224, allocations: 39.91 kB / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1224, allocations: 0 / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.718e-05/0.1224, allocations: 16 kB / 487.3 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.0002873/0.1227, allocations: 18.31 kB / 487.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004494/0.1232, allocations: 263.4 kB / 487.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/0.1235, allocations: 0.7275 MB / 488.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.762e-05/0.1235, allocations: 7.984 kB / 488.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.339e-05/0.1236, allocations: 11.44 kB / 488.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1236, allocations: 0 / 488.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of Templates: time 0.002566/0.1261, allocations: 0.6163 MB / 488.9 MB, free: 12.64 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 cvode -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