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.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.001357/0.001357, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001034/0.001034, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9568/0.9568, allocations: 177.1 MB / 205 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2544/0.2544, allocations: 32.81 MB / 294.3 MB, free: 1.285 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.[0-9,]+.|demux5.y.[0-9,]+.|mux3.y.[0-9,]+.|mux2.y.[0-9,]+.|demux2.y.[0-9,]+.|demux3.y.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_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.[0-9,]+.|demux5.y.[0-9,]+.|mux3.y.[0-9,]+.|mux2.y.[0-9,]+.|demux2.y.[0-9,]+.|demux3.y.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 3.938 kB / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.997e-05/3.172e-05, allocations: 6.25 kB / 376 MB, free: 4.668 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002222/0.002253, allocations: 1.58 MB / 377.6 MB, free: 3.074 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000239/0.002492, allocations: 59.77 kB / 377.7 MB, free: 3.016 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.517e-05/0.002547, allocations: 3.938 kB / 377.7 MB, free: 3.012 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.002697, allocations: 23.84 kB / 377.7 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.691e-05/0.002724, allocations: 3.938 kB / 377.7 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.002902, allocations: 23.97 kB / 377.7 MB, free: 2.961 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.003011, allocations: 71.81 kB / 377.8 MB, free: 2.891 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.003237, allocations: 83.61 kB / 377.9 MB, free: 2.801 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.784e-05/0.003305, allocations: 51.89 kB / 377.9 MB, free: 2.75 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.362e-05/0.003368, allocations: 39.88 kB / 377.9 MB, free: 2.711 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.926e-05/0.003398, allocations: 8 kB / 378 MB, free: 2.703 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.588e-05/0.003413, allocations: 8 kB / 378 MB, free: 2.695 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.939e-05/0.003483, allocations: 63.81 kB / 378 MB, free: 2.633 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.923e-05/0.003532, allocations: 43.89 kB / 378.1 MB, free: 2.59 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001563/0.003688, allocations: 115.5 kB / 378.2 MB, free: 2.477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.003691, allocations: 4 kB / 378.2 MB, free: 2.473 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.003692, allocations: 0 / 378.2 MB, free: 2.473 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.003696, allocations: 0 / 378.2 MB, free: 2.473 MB / 346.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.0004268/0.004123, allocations: 472.4 kB / 378.6 MB, free: 1.977 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.004161, allocations: 8.031 kB / 378.7 MB, free: 1.969 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.49e-05/0.004216, allocations: 32.8 kB / 378.7 MB, free: 1.938 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.004376, allocations: 156.4 kB / 378.8 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.004391, allocations: 12.75 kB / 378.9 MB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.004412, allocations: 24.31 kB / 378.9 MB, free: 1.723 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.004619, allocations: 133.9 kB / 379 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.004629, allocations: 4.188 kB / 379 MB, free: 1.578 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.004645, allocations: 8.375 kB / 379 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.004656, allocations: 8.125 kB / 379 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.734e-05/0.004723, allocations: 51.34 kB / 379.1 MB, free: 1.516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004321/0.005155, allocations: 460.2 kB / 379.5 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.57e-05/0.005221, allocations: 42.98 kB / 379.6 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.325e-05/0.005254, allocations: 19.69 kB / 379.6 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.005267, allocations: 0 / 379.6 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.005293, allocations: 45.5 kB / 379.6 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.005294, allocations: 0 / 379.6 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001548/0.005449, allocations: 61.53 kB / 379.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.005481, allocations: 59.39 kB / 379.7 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.474e-05/0.005556, allocations: 165.9 kB / 379.9 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.005568, allocations: 29.7 kB / 379.9 MB, free: 0.543 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.005629, allocations: 182.9 kB / 380.1 MB, free: 368 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.005651, allocations: 15.84 kB / 380.1 MB, free: 352 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.005678, allocations: 23.38 kB / 380.2 MB, free: 320 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.00581, allocations: 496.1 kB / 380.6 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.472e-05/0.005825, allocations: 8 kB / 380.6 MB, free: 15.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.728e-06/0.005835, allocations: 4 kB / 380.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.243e-05/0.005867, allocations: 27.69 kB / 380.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.00587, allocations: 3.984 kB / 380.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 5.89e-05/0.005929, allocations: 57.59 kB / 380.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.005942, allocations: 4 kB / 380.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.005947, allocations: 0 / 380.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.00596, allocations: 3.938 kB / 380.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.152e-05/0.006031, allocations: 12.42 kB / 380.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.006036, allocations: 0 / 380.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.407e-05/0.00605, allocations: 7.984 kB / 380.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.006057, allocations: 0 / 380.8 MB, free: 15.68 MB / 362.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.874e-05/0.006125, allocations: 160.6 kB / 380.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.006142, allocations: 11.95 kB / 380.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.088e-05/0.006162, allocations: 8.125 kB / 380.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.006166, allocations: 7.922 kB / 381 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.00617, allocations: 0 / 381 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.006173, allocations: 3.938 kB / 381 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002108/0.006383, allocations: 341.5 kB / 381.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.006385, allocations: 0 / 381.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.642e-05/0.006411, allocations: 11.94 kB / 381.3 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.006414, allocations: 3.938 kB / 381.3 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.00642, allocations: 0 / 381.3 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.006422, allocations: 7.938 kB / 381.3 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.006423, allocations: 3.984 kB / 381.3 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.707e-05/0.00652, allocations: 199.9 kB / 381.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.564e-06/0.006528, allocations: 7.984 kB / 381.5 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.031e-05/0.006538, allocations: 3.938 kB / 381.5 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.527e-05/0.006564, allocations: 0 / 381.5 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.746e-05/0.006581, allocations: 8 kB / 381.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-06/0.006584, allocations: 0 / 381.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.613e-05/0.00662, allocations: 127.2 kB / 381.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00662, allocations: 0 / 381.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001483/0.006769, allocations: 31.78 kB / 381.7 MB, free: 14.69 MB / 362.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 7.458e-05/0.006843, allocations: 95.25 kB / 381.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.069e-05/0.006934, allocations: 35.61 kB / 381.8 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.006936, allocations: 0 / 381.8 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.226e-05/0.006948, allocations: 15.69 kB / 381.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.007175, allocations: 23.98 kB / 381.9 MB, free: 14.51 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003691/0.007544, allocations: 271.2 kB / 382.1 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.647e-05/0.00759, allocations: 83.31 kB / 382.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.587e-05/0.007616, allocations: 8 kB / 382.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.762e-05/0.007644, allocations: 12.5 kB / 382.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of SimCode: time 6.71e-07/0.007645, allocations: 0 / 382.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of Templates: time 0.00238/0.01002, allocations: 0.698 MB / 382.9 MB, free: 13.41 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.94500812003389]