Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00193/0.00193, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 13.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2321/0.2321, allocations: 44.16 MB / 336.8 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.001271, allocations: 60.53 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1209, allocations: 60.82 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002945/0.1239, allocations: 1.599 MB / 470.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001357/0.1241, allocations: 55.77 kB / 470.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.226e-05/0.1241, allocations: 0 / 470.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.1243, allocations: 19.86 kB / 470.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.421e-05/0.1243, allocations: 0 / 470.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.556e-05/0.1244, allocations: 19.98 kB / 470.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.485e-05/0.1245, allocations: 67.78 kB / 470.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002603/0.1248, allocations: 127.4 kB / 471.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.483e-05/0.1248, allocations: 39.8 kB / 471.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.586e-05/0.1249, allocations: 39.84 kB / 471.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.1249, allocations: 8 kB / 471.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.781e-05/0.125, allocations: 8 kB / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.859e-05/0.1251, allocations: 63.88 kB / 471.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.276e-05/0.1251, allocations: 59.61 kB / 471.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.1253, allocations: 107.8 kB / 471.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1253, allocations: 4 kB / 471.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1253, allocations: 0 / 471.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.1253, allocations: 0 / 471.4 MB, free: 12.61 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.0005089/0.1259, allocations: 435.8 kB / 471.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.1259, allocations: 8.031 kB / 471.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.802e-05/0.126, allocations: 16.75 kB / 471.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.1262, allocations: 220 kB / 472 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.1262, allocations: 12.75 kB / 472.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.1262, allocations: 20.38 kB / 472.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003499/0.1266, allocations: 196.9 kB / 472.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1266, allocations: 3.938 kB / 472.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.1266, allocations: 11.98 kB / 472.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1267, allocations: 7.938 kB / 472.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002173/0.1269, allocations: 127.2 kB / 472.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006772/0.1276, allocations: 499.8 kB / 472.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.221e-05/0.1277, allocations: 46.5 kB / 472.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.355e-05/0.1277, allocations: 32.91 kB / 473 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.857e-06/0.1278, allocations: 0 / 473 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.1278, allocations: 38.56 kB / 473 MB, free: 10.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 9.22e-07/0.1278, allocations: 0 / 473 MB, free: 10.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002394/0.128, allocations: 73.67 kB / 473.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.1281, allocations: 55.41 kB / 473.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.389e-05/0.1282, allocations: 113.8 kB / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.1282, allocations: 25.7 kB / 473.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.761e-05/0.1283, allocations: 135.9 kB / 473.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.1283, allocations: 19.75 kB / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.551e-05/0.1284, allocations: 25.7 kB / 473.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1285, allocations: 310.8 kB / 473.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.423e-05/0.1285, allocations: 15.98 kB / 473.8 MB, free: 10 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.386e-05/0.1286, allocations: 8 kB / 473.8 MB, free: 9.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.598e-05/0.1286, allocations: 32.84 kB / 473.8 MB, free: 9.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1287, allocations: 0 / 473.8 MB, free: 9.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001173/0.1288, allocations: 65.53 kB / 473.9 MB, free: 9.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.1288, allocations: 14.17 kB / 473.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.1288, allocations: 7.938 kB / 473.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.1288, allocations: 0 / 473.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.964e-05/0.1289, allocations: 8 kB / 473.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1289, allocations: 0 / 473.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.426e-05/0.129, allocations: 0 / 473.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.129, allocations: 4 kB / 473.9 MB, free: 9.855 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 0.0001049/0.1291, allocations: 137.8 kB / 474 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.69e-05/0.1291, allocations: 15.84 kB / 474.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.333e-05/0.1292, allocations: 7.969 kB / 474.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1292, allocations: 0 / 474.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1292, allocations: 0 / 474.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1292, allocations: 3.984 kB / 474.1 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003706/0.1296, allocations: 362.9 kB / 474.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1296, allocations: 4.062 kB / 474.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.301e-05/0.1296, allocations: 8 kB / 474.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1296, allocations: 4 kB / 474.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.1296, allocations: 3.984 kB / 474.4 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1296, allocations: 0 / 474.4 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1296, allocations: 0 / 474.4 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001697/0.1298, allocations: 163.4 kB / 474.6 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.492e-05/0.1299, allocations: 84.95 kB / 474.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.1299, allocations: 7.984 kB / 474.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.497e-05/0.13, allocations: 4 kB / 474.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.382e-05/0.13, allocations: 4 kB / 474.7 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.13, allocations: 0 / 474.7 MB, free: 8.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.854e-05/0.1301, allocations: 87.27 kB / 474.8 MB, free: 8.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1301, allocations: 0 / 474.8 MB, free: 8.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002297/0.1303, allocations: 31.69 kB / 474.8 MB, free: 8.848 MB / 350.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.625e-05/0.1304, allocations: 99.23 kB / 474.9 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001278/0.1305, allocations: 31.92 kB / 475 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1305, allocations: 4 kB / 475 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.912e-05/0.1306, allocations: 23.92 kB / 475 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.1309, allocations: 7.234 kB / 475 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005918/0.1315, allocations: 370.9 kB / 475.3 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.1318, allocations: 0.7316 MB / 476.1 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.505e-05/0.1318, allocations: 11.44 kB / 476.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1319, allocations: 0 / 476.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of Templates: time 0.002718/0.1346, allocations: 1.227 MB / 477.3 MB, free: 6.289 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches