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.001176/0.001176, allocations: 108.2 kB / 18.39 MB, free: 4.762 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.001087/0.001088, allocations: 182.9 kB / 19.32 MB, free: 3.832 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.375/1.375, allocations: 222.9 MB / 243 MB, free: 15.17 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.2085/0.2085, allocations: 44.19 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.91 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1169, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003286/0.1202, allocations: 1.548 MB / 472.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001387/0.1204, allocations: 51.77 kB / 472.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.406e-05/0.1205, allocations: 0 / 472.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001507/0.1206, allocations: 19.86 kB / 472.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.26e-05/0.1207, allocations: 3.938 kB / 472.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.893e-05/0.1208, allocations: 23.97 kB / 472.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.121, allocations: 75.77 kB / 472.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000274/0.1213, allocations: 127.4 kB / 472.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.215e-05/0.1213, allocations: 39.83 kB / 472.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.494e-05/0.1214, allocations: 47.78 kB / 472.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.1214, allocations: 8 kB / 472.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.579e-05/0.1214, allocations: 8 kB / 472.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.665e-05/0.1215, allocations: 59.89 kB / 472.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.128e-05/0.1216, allocations: 67.59 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002909/0.1219, allocations: 147.4 kB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1219, allocations: 3.938 kB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1219, allocations: 0 / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.122, allocations: 4 kB / 472.9 MB, free: 11.4 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.0007228/0.1227, allocations: 435.5 kB / 473.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1227, allocations: 8.031 kB / 473.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.275e-05/0.1228, allocations: 16.75 kB / 473.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.123, allocations: 216.1 kB / 473.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.1231, allocations: 16.73 kB / 473.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.1231, allocations: 20.38 kB / 473.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003437/0.1234, allocations: 192.9 kB / 473.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1235, allocations: 7.938 kB / 473.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.1235, allocations: 4 kB / 473.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.1235, allocations: 7.938 kB / 473.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002208/0.1237, allocations: 131.2 kB / 473.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007162/0.1245, allocations: 491.8 kB / 474.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.199e-05/0.1246, allocations: 46.5 kB / 474.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.418e-05/0.1247, allocations: 36.89 kB / 474.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.1247, allocations: 4 kB / 474.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/0.1248, allocations: 30.56 kB / 474.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.1248, allocations: 7.938 kB / 474.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002485/0.1251, allocations: 69.67 kB / 474.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.1251, allocations: 55.41 kB / 474.7 MB, free: 9.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.1253, allocations: 109.8 kB / 474.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.1253, allocations: 29.7 kB / 474.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.633e-05/0.1254, allocations: 139.9 kB / 474.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.1254, allocations: 15.73 kB / 475 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.1256, allocations: 17.72 kB / 475 MB, free: 9.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000287/0.1259, allocations: 310.8 kB / 475.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.516e-05/0.1259, allocations: 19.98 kB / 475.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.346e-05/0.126, allocations: 11.98 kB / 475.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.059e-05/0.126, allocations: 28.86 kB / 475.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.126, allocations: 3.984 kB / 475.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001142/0.1262, allocations: 65.53 kB / 475.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001114/0.1263, allocations: 8 kB / 475.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1263, allocations: 0 / 475.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1263, allocations: 0 / 475.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.725e-05/0.1264, allocations: 15.94 kB / 475.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1264, allocations: 3.984 kB / 475.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.631e-05/0.1265, allocations: 4 kB / 475.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.1265, allocations: 448 / 475.4 MB, free: 8.652 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.0001097/0.1266, allocations: 129.8 kB / 475.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.759e-05/0.1266, allocations: 11.84 kB / 475.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.385e-05/0.1267, allocations: 11.95 kB / 475.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1267, allocations: 0 / 475.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.1267, allocations: 4 kB / 475.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1267, allocations: 8 kB / 475.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004102/0.1271, allocations: 362.4 kB / 476 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1271, allocations: 0 / 476 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.176e-05/0.1272, allocations: 11.98 kB / 476 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1272, allocations: 0 / 476 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.1272, allocations: 0 / 476 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1272, allocations: 0 / 476 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1272, allocations: 0 / 476 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.1274, allocations: 171.4 kB / 476.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.042e-05/0.1275, allocations: 85.02 kB / 476.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.1275, allocations: 0 / 476.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.309e-05/0.1276, allocations: 0 / 476.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.1276, allocations: 4 kB / 476.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.358e-06/0.1276, allocations: 7.984 kB / 476.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.398e-05/0.1277, allocations: 83.28 kB / 476.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1277, allocations: 0 / 476.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002432/0.128, allocations: 39.62 kB / 476.3 MB, free: 7.645 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 0.0001108/0.1281, allocations: 91.25 kB / 476.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000139/0.1282, allocations: 35.91 kB / 476.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1282, allocations: 0 / 476.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.318e-05/0.1283, allocations: 19.94 kB / 476.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.1286, allocations: 16.36 kB / 476.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000596/0.1292, allocations: 271.4 kB / 476.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005198/0.1298, allocations: 0.7314 MB / 477.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.713e-05/0.1298, allocations: 0 / 477.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.205e-05/0.1298, allocations: 11.44 kB / 477.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1298, allocations: 0 / 477.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of Templates: time 0.003063/0.1329, allocations: 0.6693 MB / 478.2 MB, free: 5.754 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 -s gbode -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