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.0009348/0.0009348, allocations: 77.97 kB / 21.42 MB, free: 3.066 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.0009593/0.0009593, allocations: 165.9 kB / 24.82 MB, free: 9.309 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 0.9114/0.9114, allocations: 177.1 MB / 205.3 MB, free: 5.512 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.2281/0.2281, allocations: 32.81 MB / 294.6 MB, free: 1.242 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.323e-06/1.323e-06, allocations: 0 / 376.5 MB, free: 4.41 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.09e-05/1.222e-05, allocations: 5.406 kB / 376.5 MB, free: 4.406 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00162/0.001632, allocations: 1.58 MB / 378 MB, free: 2.812 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001825/0.001814, allocations: 63.75 kB / 378.1 MB, free: 2.75 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.926e-05/0.001864, allocations: 4 kB / 378.1 MB, free: 2.746 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.001971, allocations: 19.86 kB / 378.1 MB, free: 2.727 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.356e-05/0.001995, allocations: 7.875 kB / 378.1 MB, free: 2.719 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001241/0.002119, allocations: 31.95 kB / 378.2 MB, free: 2.688 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.053e-05/0.002189, allocations: 67.83 kB / 378.2 MB, free: 2.621 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.002341, allocations: 79.61 kB / 378.3 MB, free: 2.535 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.39e-05/0.002395, allocations: 55.88 kB / 378.4 MB, free: 2.48 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.568e-05/0.00245, allocations: 31.95 kB / 378.4 MB, free: 2.449 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.00247, allocations: 8 kB / 378.4 MB, free: 2.441 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.277e-05/0.002482, allocations: 8 kB / 378.4 MB, free: 2.434 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.831e-05/0.002541, allocations: 67.8 kB / 378.5 MB, free: 2.367 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.392e-05/0.002575, allocations: 43.84 kB / 378.5 MB, free: 2.324 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.002678, allocations: 115.5 kB / 378.6 MB, free: 2.211 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-06/0.00268, allocations: 4 kB / 378.6 MB, free: 2.207 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.4e-07/0.00268, allocations: 0 / 378.6 MB, free: 2.207 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.885e-06/0.002683, allocations: 0 / 378.6 MB, free: 2.207 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.0003183/0.003001, allocations: 472.4 kB / 379.1 MB, free: 1.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.003036, allocations: 12.03 kB / 379.1 MB, free: 1.699 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.003072, allocations: 32.8 kB / 379.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.003184, allocations: 152.4 kB / 379.3 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.003195, allocations: 12.75 kB / 379.3 MB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.003212, allocations: 20.38 kB / 379.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.003345, allocations: 125.9 kB / 379.5 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.535e-06/0.003352, allocations: 192 / 379.5 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.003362, allocations: 8.375 kB / 379.5 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.00337, allocations: 8.125 kB / 379.5 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.198e-05/0.003412, allocations: 51.02 kB / 379.5 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003146/0.003726, allocations: 412.9 kB / 379.9 MB, free: 0.832 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.571e-05/0.003772, allocations: 50.97 kB / 380 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.888e-05/0.003791, allocations: 15.69 kB / 380 MB, free: 0.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.003804, allocations: 3.984 kB / 380 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.003822, allocations: 41.39 kB / 380 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 8.92e-07/0.003823, allocations: 0 / 380 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001064/0.003929, allocations: 49.78 kB / 380.1 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/0.003953, allocations: 59.33 kB / 380.1 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.221e-05/0.004015, allocations: 173.9 kB / 380.3 MB, free: 392 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-06/0.004024, allocations: 25.7 kB / 380.3 MB, free: 360 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.262e-05/0.004076, allocations: 182.9 kB / 380.5 MB, free: 172 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.004093, allocations: 23.77 kB / 380.5 MB, free: 148 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.395e-05/0.004117, allocations: 23.38 kB / 380.6 MB, free: 116 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.004228, allocations: 0.4884 MB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.414e-06/0.004236, allocations: 8 kB / 381.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.562e-06/0.004242, allocations: 4 kB / 381.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.179e-05/0.004264, allocations: 24.05 kB / 381.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.004265, allocations: 0 / 381.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 4.568e-05/0.004311, allocations: 53.66 kB / 381.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.004321, allocations: 4 kB / 381.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.004326, allocations: 0 / 381.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.004336, allocations: 0 / 381.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.263e-05/0.004388, allocations: 19.86 kB / 381.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.004391, allocations: 3.938 kB / 381.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.19e-05/0.004403, allocations: 4 kB / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-06/0.004407, allocations: 4 kB / 381.2 MB, free: 15.48 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.152e-05/0.004469, allocations: 152.6 kB / 381.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.004482, allocations: 7.953 kB / 381.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.026e-05/0.004503, allocations: 8.125 kB / 381.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.004504, allocations: 4 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.004507, allocations: 7.922 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.004509, allocations: 0 / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.004683, allocations: 302 kB / 381.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.004685, allocations: 4 kB / 381.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.795e-05/0.004703, allocations: 8 kB / 381.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.004704, allocations: 8 kB / 381.7 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-06/0.004707, allocations: 0 / 381.7 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.004709, allocations: 3.938 kB / 381.7 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.00471, allocations: 0 / 381.7 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.649e-05/0.004787, allocations: 199.8 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.45e-06/0.004792, allocations: 4 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.006e-05/0.004802, allocations: 0 / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.878e-05/0.004831, allocations: 12.11 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-06/0.004841, allocations: 4 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.004843, allocations: 4 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.346e-05/0.004877, allocations: 131.2 kB / 382 MB, free: 14.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004877, allocations: 0 / 382 MB, free: 14.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001441/0.005021, allocations: 31.78 kB / 382 MB, free: 14.55 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 6.029e-05/0.005081, allocations: 91.25 kB / 382.1 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 5.227e-05/0.005133, allocations: 27.67 kB / 382.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.005135, allocations: 0 / 382.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.28e-05/0.005147, allocations: 23.61 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001594/0.005307, allocations: 16.52 kB / 382.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002734/0.00558, allocations: 271.2 kB / 382.5 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.107e-05/0.005621, allocations: 83.31 kB / 382.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.869e-05/0.00564, allocations: 0 / 382.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.844e-05/0.005688, allocations: 82.19 kB / 382.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of SimCode: time 6.71e-07/0.005689, allocations: 0 / 382.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of Templates: time 0.00197/0.007659, allocations: 0.7314 MB / 383.4 MB, free: 13.18 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.740950192324817]