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.001218/0.001218, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.0009906/0.0009906, allocations: 166 kB / 25.61 MB, free: 8.855 MB / 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 1.001/1.001, allocations: 177.1 MB / 206 MB, free: 4.508 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.1582/0.1582, allocations: 32.81 MB / 295.4 MB, free: 15.38 MB / 282.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 8.42e-07/8.42e-07, allocations: 0 / 377.2 MB, free: 25.61 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.768e-06/1.061e-05, allocations: 9.203 kB / 377.3 MB, free: 25.6 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001575/0.001586, allocations: 1.561 MB / 378.8 MB, free: 24.02 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001274/0.001714, allocations: 67.69 kB / 378.9 MB, free: 23.96 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.328e-05/0.001747, allocations: 7.938 kB / 378.9 MB, free: 23.95 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 5.952e-05/0.001806, allocations: 11.86 kB / 378.9 MB, free: 23.94 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.306e-05/0.001819, allocations: 11.92 kB / 378.9 MB, free: 23.93 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.448e-05/0.001894, allocations: 31.97 kB / 378.9 MB, free: 23.89 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.867e-05/0.001943, allocations: 63.83 kB / 379 MB, free: 23.83 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.002053, allocations: 87.59 kB / 379.1 MB, free: 23.74 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.499e-05/0.002088, allocations: 55.88 kB / 379.1 MB, free: 23.69 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.067e-05/0.002119, allocations: 35.89 kB / 379.2 MB, free: 23.65 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.002131, allocations: 8 kB / 379.2 MB, free: 23.64 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.456e-06/0.00214, allocations: 8 kB / 379.2 MB, free: 23.64 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.738e-05/0.002177, allocations: 71.8 kB / 379.3 MB, free: 23.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.624e-05/0.002204, allocations: 39.91 kB / 379.3 MB, free: 23.53 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 8.388e-05/0.002287, allocations: 111.5 kB / 379.4 MB, free: 23.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.233e-06/0.002289, allocations: 4 kB / 379.4 MB, free: 23.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.41e-07/0.002289, allocations: 0 / 379.4 MB, free: 23.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.645e-06/0.002292, allocations: 0 / 379.4 MB, free: 23.41 MB / 314.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.0002371/0.002529, allocations: 468.4 kB / 379.9 MB, free: 22.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.00256, allocations: 15.98 kB / 379.9 MB, free: 22.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.89e-05/0.002599, allocations: 36.8 kB / 379.9 MB, free: 22.87 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.002705, allocations: 144.4 kB / 380.1 MB, free: 22.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.002717, allocations: 16.75 kB / 380.1 MB, free: 22.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.002731, allocations: 16.38 kB / 380.1 MB, free: 22.67 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.00285, allocations: 129.8 kB / 380.2 MB, free: 22.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.002858, allocations: 4.188 kB / 380.2 MB, free: 22.53 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.002869, allocations: 8.375 kB / 380.2 MB, free: 22.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.002876, allocations: 8.125 kB / 380.2 MB, free: 22.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.338e-05/0.002919, allocations: 43.09 kB / 380.3 MB, free: 22.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002877/0.003207, allocations: 420.8 kB / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.11e-05/0.003248, allocations: 46.97 kB / 380.7 MB, free: 21.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.277e-05/0.003271, allocations: 31.78 kB / 380.8 MB, free: 21.94 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.003282, allocations: 4 kB / 380.8 MB, free: 21.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.467e-05/0.003296, allocations: 37.39 kB / 380.8 MB, free: 21.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 8.31e-07/0.003297, allocations: 0 / 380.8 MB, free: 21.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001014/0.003399, allocations: 53.62 kB / 380.9 MB, free: 21.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.007e-05/0.003419, allocations: 55.34 kB / 380.9 MB, free: 21.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.53e-05/0.003464, allocations: 165.9 kB / 381.1 MB, free: 21.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-06/0.00347, allocations: 29.7 kB / 381.1 MB, free: 21.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.003508, allocations: 186.9 kB / 381.3 MB, free: 21.36 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.003523, allocations: 15.89 kB / 381.3 MB, free: 21.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/0.003542, allocations: 19.38 kB / 381.3 MB, free: 21.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.666e-05/0.003609, allocations: 0.4923 MB / 381.8 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.474e-06/0.003617, allocations: 8 kB / 381.8 MB, free: 20.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.992e-06/0.003622, allocations: 0 / 381.8 MB, free: 20.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.028e-05/0.003643, allocations: 27.67 kB / 381.9 MB, free: 20.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.003644, allocations: 0 / 381.9 MB, free: 20.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 3.748e-05/0.003681, allocations: 49.59 kB / 381.9 MB, free: 20.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.536e-06/0.00369, allocations: 8 kB / 381.9 MB, free: 20.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-06/0.003694, allocations: 0 / 381.9 MB, free: 20.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.003703, allocations: 0 / 381.9 MB, free: 20.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.038e-05/0.003743, allocations: 15.92 kB / 381.9 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-06/0.003746, allocations: 0 / 381.9 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.252e-05/0.003759, allocations: 7.938 kB / 381.9 MB, free: 20.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-06/0.003762, allocations: 8 kB / 381.9 MB, free: 20.68 MB / 314.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 4.41e-05/0.003806, allocations: 152.6 kB / 382.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/0.003822, allocations: 7.953 kB / 382.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.948e-05/0.003841, allocations: 12.11 kB / 382.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.003843, allocations: 4 kB / 382.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.003846, allocations: 3.938 kB / 382.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.00385, allocations: 0 / 382.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.003974, allocations: 306.4 kB / 382.4 MB, free: 20.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.003974, allocations: 0 / 382.4 MB, free: 20.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.773e-05/0.003992, allocations: 11.94 kB / 382.4 MB, free: 20.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.003994, allocations: 4 kB / 382.4 MB, free: 20.15 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-06/0.003998, allocations: 4 kB / 382.4 MB, free: 20.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.003999, allocations: 7.875 kB / 382.4 MB, free: 20.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.004, allocations: 0 / 382.4 MB, free: 20.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.201e-05/0.004052, allocations: 195.9 kB / 382.6 MB, free: 19.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-06/0.004058, allocations: 7.953 kB / 382.6 MB, free: 19.92 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.306e-06/0.004067, allocations: 3.984 kB / 382.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.485e-05/0.004091, allocations: 3.938 kB / 382.7 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.069e-05/0.004102, allocations: 4 kB / 382.7 MB, free: 19.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-06/0.004104, allocations: 0 / 382.7 MB, free: 19.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.736e-05/0.004121, allocations: 135.5 kB / 382.8 MB, free: 19.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004121, allocations: 0 / 382.8 MB, free: 19.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001344/0.004255, allocations: 31.84 kB / 382.8 MB, free: 19.74 MB / 314.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 5.062e-05/0.004306, allocations: 87.25 kB / 382.9 MB, free: 19.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.064e-05/0.004367, allocations: 31.59 kB / 382.9 MB, free: 19.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.004369, allocations: 4 kB / 382.9 MB, free: 19.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.829e-06/0.004379, allocations: 15.69 kB / 383 MB, free: 19.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.004541, allocations: 15.98 kB / 383 MB, free: 19.58 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002683/0.004809, allocations: 273.1 kB / 383.2 MB, free: 19.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.236e-05/0.004841, allocations: 83.11 kB / 383.3 MB, free: 19.18 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.998e-05/0.004861, allocations: 7.859 kB / 383.3 MB, free: 19.17 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.004902, allocations: 82.19 kB / 383.4 MB, free: 19.09 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.004903, allocations: 0 / 383.4 MB, free: 19.09 MB / 314.7 MB Notification: Performance of Templates: time 0.0022/0.007103, allocations: 0.7367 MB / 384.1 MB, free: 18.38 MB / 314.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: 3.0818070569075644]