Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.003004/0.003004, allocations: 92.97 kB / 20.21 MB, free: 4.215 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002311/0.002311, allocations: 165.2 kB / 23.53 MB, free: 0.9023 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 158.6 MB / 185.3 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2153/0.2153, allocations: 32.38 MB / 270 MB, free: 14.76 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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_3.2.3_ModelicaTest.Blocks.MuxDemux") translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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_3.2.3_ModelicaTest.Blocks.MuxDemux") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 346.9 MB, free: 9.809 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.793e-05/3.972e-05, allocations: 2.312 kB / 346.9 MB, free: 9.805 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003065/0.003104, allocations: 1.545 MB / 348.5 MB, free: 8.254 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002/0.003304, allocations: 51.83 kB / 348.5 MB, free: 8.203 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.375e-05/0.003388, allocations: 3.938 kB / 348.5 MB, free: 8.199 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.003597, allocations: 19.86 kB / 348.5 MB, free: 8.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.482e-05/0.003632, allocations: 7.875 kB / 348.6 MB, free: 8.172 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.003791, allocations: 19.97 kB / 348.6 MB, free: 8.152 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.003918, allocations: 79.81 kB / 348.6 MB, free: 8.074 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.004171, allocations: 79.55 kB / 348.7 MB, free: 7.992 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.136e-05/0.004252, allocations: 55.88 kB / 348.8 MB, free: 7.938 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.582e-05/0.004318, allocations: 31.95 kB / 348.8 MB, free: 7.906 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/0.00435, allocations: 8 kB / 348.8 MB, free: 7.898 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.764e-05/0.004368, allocations: 8 kB / 348.8 MB, free: 7.891 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.518e-05/0.004453, allocations: 67.8 kB / 348.9 MB, free: 7.824 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.488e-05/0.004518, allocations: 43.84 kB / 348.9 MB, free: 7.781 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002217/0.004739, allocations: 151.4 kB / 349.1 MB, free: 7.633 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.004747, allocations: 4 kB / 349.1 MB, free: 7.629 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.004749, allocations: 0 / 349.1 MB, free: 7.629 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.004755, allocations: 4 kB / 349.1 MB, free: 7.625 MB / 282.7 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.0005334/0.005289, allocations: 464.2 kB / 349.5 MB, free: 7.137 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.005341, allocations: 8.031 kB / 349.6 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.153e-05/0.005423, allocations: 36.8 kB / 349.6 MB, free: 7.094 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.00564, allocations: 160.3 kB / 349.7 MB, free: 6.91 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.005667, allocations: 8.75 kB / 349.8 MB, free: 6.902 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.005695, allocations: 20.38 kB / 349.8 MB, free: 6.883 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002578/0.005953, allocations: 136.9 kB / 349.9 MB, free: 6.742 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.005965, allocations: 192 / 349.9 MB, free: 6.742 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.005986, allocations: 4.375 kB / 349.9 MB, free: 6.738 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.005997, allocations: 12.12 kB / 349.9 MB, free: 6.727 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.006127, allocations: 59.33 kB / 350 MB, free: 6.672 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005319/0.006659, allocations: 484.2 kB / 350.5 MB, free: 6.16 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.006763, allocations: 43.05 kB / 350.5 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.255e-05/0.006815, allocations: 35.8 kB / 350.5 MB, free: 6.066 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.006832, allocations: 0 / 350.5 MB, free: 6.066 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.006851, allocations: 37.39 kB / 350.6 MB, free: 6.02 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 7.42e-07/0.006852, allocations: 0 / 350.6 MB, free: 6.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002227/0.007074, allocations: 73.56 kB / 350.6 MB, free: 5.941 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.242e-05/0.007097, allocations: 51.41 kB / 350.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.232e-05/0.007169, allocations: 173.9 kB / 350.9 MB, free: 5.691 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.003e-06/0.007176, allocations: 25.7 kB / 350.9 MB, free: 5.66 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.337e-05/0.007229, allocations: 190.9 kB / 351.1 MB, free: 5.469 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.154e-05/0.007251, allocations: 15.89 kB / 351.1 MB, free: 5.453 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/0.00728, allocations: 23.38 kB / 351.1 MB, free: 5.422 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.913e-05/0.007359, allocations: 496.1 kB / 351.6 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.205e-05/0.007391, allocations: 15.98 kB / 351.6 MB, free: 4.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.31e-05/0.007414, allocations: 8.016 kB / 351.6 MB, free: 4.902 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.54e-05/0.00747, allocations: 31.67 kB / 351.6 MB, free: 4.867 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.007471, allocations: 7.938 kB / 351.7 MB, free: 4.859 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.22e-05/0.007564, allocations: 65.58 kB / 351.7 MB, free: 4.789 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.007577, allocations: 4 kB / 351.7 MB, free: 4.785 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.007583, allocations: 3.984 kB / 351.7 MB, free: 4.781 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.007602, allocations: 3.938 kB / 351.7 MB, free: 4.777 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.98e-05/0.007682, allocations: 8.438 kB / 351.7 MB, free: 4.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.007689, allocations: 0 / 351.7 MB, free: 4.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.038e-05/0.007709, allocations: 8 kB / 351.7 MB, free: 4.762 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.007716, allocations: 4 kB / 351.8 MB, free: 4.758 MB / 282.7 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 6.506e-05/0.007781, allocations: 164.6 kB / 351.9 MB, free: 4.586 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.274e-05/0.007804, allocations: 7.953 kB / 351.9 MB, free: 4.578 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.481e-05/0.007829, allocations: 4.125 kB / 351.9 MB, free: 4.578 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.007831, allocations: 3.938 kB / 351.9 MB, free: 4.574 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.007835, allocations: 0 / 351.9 MB, free: 4.574 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.007839, allocations: 0 / 351.9 MB, free: 4.574 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002402/0.008079, allocations: 365.4 kB / 352.3 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.008081, allocations: 3.984 kB / 352.3 MB, free: 4.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.299e-05/0.008114, allocations: 12 kB / 352.3 MB, free: 4.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.008116, allocations: 3.938 kB / 352.3 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.008124, allocations: 0 / 352.3 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.008126, allocations: 3.938 kB / 352.3 MB, free: 4.152 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.008127, allocations: 0 / 352.3 MB, free: 4.152 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.008241, allocations: 212 kB / 352.5 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.728e-06/0.008251, allocations: 15.88 kB / 352.5 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.008266, allocations: 3.938 kB / 352.5 MB, free: 3.906 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.653e-05/0.008312, allocations: 0 / 352.5 MB, free: 3.906 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.082e-05/0.008353, allocations: 4 kB / 352.5 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.008356, allocations: 4 kB / 352.5 MB, free: 3.898 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.208e-05/0.008388, allocations: 135.5 kB / 352.7 MB, free: 3.766 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008388, allocations: 0 / 352.7 MB, free: 3.766 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002241/0.008612, allocations: 27.84 kB / 352.7 MB, free: 3.738 MB / 282.7 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.442e-05/0.008706, allocations: 91.25 kB / 352.8 MB, free: 3.641 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001316/0.008838, allocations: 35.61 kB / 352.8 MB, free: 3.602 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.00884, allocations: 0 / 352.8 MB, free: 3.602 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.68e-05/0.008876, allocations: 27.92 kB / 352.9 MB, free: 3.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.009147, allocations: 24.28 kB / 352.9 MB, free: 3.547 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005145/0.009662, allocations: 283.2 kB / 353.2 MB, free: 3.234 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.414e-05/0.009746, allocations: 110.2 kB / 353.3 MB, free: 3.105 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.853e-05/0.009784, allocations: 4 kB / 353.3 MB, free: 3.102 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.009816, allocations: 12.5 kB / 353.3 MB, free: 3.09 MB / 282.7 MB Notification: Performance of SimCode: time 4.9e-07/0.009816, allocations: 0 / 353.3 MB, free: 3.09 MB / 282.7 MB Notification: Performance of Templates: time 0.004182/0.014, allocations: 0.7108 MB / 354 MB, free: 2.402 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1099101540166885]