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.0007929/0.0007928, allocations: 98.47 kB / 18.01 MB, free: 5.734 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.001186/0.001186, allocations: 176.9 kB / 18.91 MB, free: 4.871 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.409/1.409, allocations: 223.3 MB / 242.9 MB, free: 14.5 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.2034/0.2034, allocations: 44.24 MB / 338.3 MB, free: 2.438 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003337/0.0003336, allocations: 11.98 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1142, allocations: 61.92 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001879/0.1161, allocations: 1.247 MB / 474.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001802/0.1163, allocations: 55.78 kB / 474.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.388e-05/0.1164, allocations: 4 kB / 474.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.1166, allocations: 11.91 kB / 474.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.166e-05/0.1166, allocations: 7.938 kB / 474.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.418e-05/0.1167, allocations: 19.98 kB / 474.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.1168, allocations: 67.78 kB / 474.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002805/0.1171, allocations: 119.4 kB / 474.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.323e-05/0.1172, allocations: 15.86 kB / 474.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.859e-05/0.1172, allocations: 23.8 kB / 474.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.1172, allocations: 0 / 474.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.266e-05/0.1173, allocations: 8 kB / 474.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.601e-05/0.1174, allocations: 51.89 kB / 474.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.515e-05/0.1174, allocations: 69.33 kB / 474.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.1176, allocations: 107.7 kB / 474.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1176, allocations: 0 / 474.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1176, allocations: 0 / 474.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1176, allocations: 4 kB / 474.7 MB, free: 11.5 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.0005152/0.1182, allocations: 407.8 kB / 475.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.1182, allocations: 12.03 kB / 475.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.989e-05/0.1183, allocations: 20.75 kB / 475.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.1185, allocations: 216 kB / 475.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.1186, allocations: 16.75 kB / 475.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.1186, allocations: 16.38 kB / 475.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003581/0.119, allocations: 200.9 kB / 475.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.119, allocations: 3.938 kB / 475.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.877e-05/0.119, allocations: 4 kB / 475.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.119, allocations: 4 kB / 475.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002341/0.1193, allocations: 135.3 kB / 475.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000651/0.1199, allocations: 499.8 kB / 476.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.69e-05/0.12, allocations: 42.56 kB / 476.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.236e-05/0.1201, allocations: 40.89 kB / 476.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.1201, allocations: 0 / 476.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.1202, allocations: 42.5 kB / 476.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.1202, allocations: 0 / 476.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002547/0.1204, allocations: 81.58 kB / 476.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.1205, allocations: 55.41 kB / 476.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.197e-05/0.1206, allocations: 109.8 kB / 476.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.1206, allocations: 25.7 kB / 476.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.408e-05/0.1207, allocations: 135.9 kB / 476.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.1207, allocations: 15.75 kB / 476.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.782e-05/0.1208, allocations: 21.7 kB / 476.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.632e-05/0.1209, allocations: 310.8 kB / 477.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.761e-05/0.1209, allocations: 15.98 kB / 477.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.755e-05/0.121, allocations: 15.94 kB / 477.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.911e-05/0.1211, allocations: 36.84 kB / 477.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1211, allocations: 0 / 477.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001322/0.1212, allocations: 73.53 kB / 477.2 MB, free: 8.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.1212, allocations: 7.984 kB / 477.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1213, allocations: 0 / 477.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.1213, allocations: 4 kB / 477.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.898e-05/0.1214, allocations: 11.94 kB / 477.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1214, allocations: 0 / 477.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.773e-05/0.1214, allocations: 4 kB / 477.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.946e-06/0.1214, allocations: 4 kB / 477.2 MB, free: 8.746 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.0001067/0.1215, allocations: 141.7 kB / 477.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.867e-05/0.1216, allocations: 7.938 kB / 477.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.353e-05/0.1216, allocations: 7.969 kB / 477.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1216, allocations: 0 / 477.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1216, allocations: 4 kB / 477.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1216, allocations: 3.984 kB / 477.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003724/0.122, allocations: 370.4 kB / 477.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.122, allocations: 4.438 kB / 477.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.238e-05/0.1221, allocations: 8 kB / 477.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1221, allocations: 0 / 477.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.1221, allocations: 7.984 kB / 477.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1221, allocations: 4 kB / 477.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1221, allocations: 0 / 477.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001639/0.1223, allocations: 163.5 kB / 478 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.081e-05/0.1223, allocations: 85.02 kB / 478 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.1223, allocations: 3.984 kB / 478 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.364e-05/0.1224, allocations: 4 kB / 478 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.817e-05/0.1224, allocations: 0 / 478 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.1224, allocations: 4 kB / 478 MB, free: 7.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.703e-05/0.1225, allocations: 91.27 kB / 478.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.815e-06/0.1225, allocations: 0 / 478.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002398/0.1227, allocations: 35.72 kB / 478.2 MB, free: 7.723 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.0001009/0.1229, allocations: 95.23 kB / 478.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001367/0.123, allocations: 31.92 kB / 478.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.123, allocations: 4 kB / 478.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.261e-05/0.1231, allocations: 23.98 kB / 478.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.1234, allocations: 11.94 kB / 478.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006126/0.124, allocations: 380.2 kB / 478.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.1243, allocations: 0.7277 MB / 479.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.662e-05/0.1244, allocations: 11.44 kB / 479.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1244, allocations: 0 / 479.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of Templates: time 0.002975/0.1274, allocations: 1.218 MB / 480.7 MB, free: 5.168 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