Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001351/0.001351, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001486/0.001486, allocations: 169.9 kB / 24.91 MB, free: 8.723 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.007/1.007, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2733/0.2733, allocations: 34.26 MB / 296.1 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Blocks.MuxDemux") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 325.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.25e-05, allocations: 2.312 kB / 325.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002117/0.002139, allocations: 1.582 MB / 326.8 MB, free: 6.145 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002331/0.002372, allocations: 71.69 kB / 326.9 MB, free: 6.074 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.634e-05/0.002428, allocations: 7.938 kB / 326.9 MB, free: 6.066 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.002559, allocations: 15.86 kB / 326.9 MB, free: 6.051 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.063e-05/0.00258, allocations: 7.938 kB / 326.9 MB, free: 6.043 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001554/0.002735, allocations: 35.88 kB / 326.9 MB, free: 6.008 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.857e-05/0.002834, allocations: 67.83 kB / 327 MB, free: 5.941 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.003001, allocations: 84.25 kB / 327.1 MB, free: 5.852 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.744e-05/0.003058, allocations: 55.88 kB / 327.2 MB, free: 5.797 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.383e-05/0.003112, allocations: 23.97 kB / 327.2 MB, free: 5.773 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.003136, allocations: 15.98 kB / 327.2 MB, free: 5.758 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.316e-05/0.003149, allocations: 12 kB / 327.2 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.951e-05/0.003208, allocations: 67.8 kB / 327.3 MB, free: 5.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.068e-05/0.003249, allocations: 44.47 kB / 327.3 MB, free: 5.637 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.003379, allocations: 111.5 kB / 327.4 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.003381, allocations: 0 / 327.4 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.003382, allocations: 0 / 327.4 MB, free: 5.527 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.003385, allocations: 0 / 327.4 MB, free: 5.527 MB / 298.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.0004257/0.003811, allocations: 338.1 kB / 327.8 MB, free: 5.176 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.003844, allocations: 8.031 kB / 327.8 MB, free: 5.168 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.508e-05/0.003879, allocations: 24.92 kB / 327.8 MB, free: 5.145 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.004005, allocations: 157.5 kB / 327.9 MB, free: 4.965 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.004019, allocations: 16.75 kB / 328 MB, free: 4.949 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.004039, allocations: 20.38 kB / 328 MB, free: 4.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.004203, allocations: 133.8 kB / 328.1 MB, free: 4.789 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.00421, allocations: 192 / 328.1 MB, free: 4.789 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.004221, allocations: 4.375 kB / 328.1 MB, free: 4.785 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.004229, allocations: 8.125 kB / 328.1 MB, free: 4.777 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.943e-05/0.004268, allocations: 39.11 kB / 328.2 MB, free: 4.742 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003157/0.004584, allocations: 329.5 kB / 328.5 MB, free: 4.406 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.891e-05/0.004633, allocations: 34.52 kB / 328.5 MB, free: 4.363 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.237e-05/0.004655, allocations: 24.95 kB / 328.5 MB, free: 4.336 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.004666, allocations: 0 / 328.5 MB, free: 4.336 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.004686, allocations: 30.56 kB / 328.6 MB, free: 4.297 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.004687, allocations: 4 kB / 328.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001038/0.004791, allocations: 45.81 kB / 328.6 MB, free: 4.242 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.004827, allocations: 59.34 kB / 328.7 MB, free: 4.172 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.735e-05/0.004894, allocations: 114.7 kB / 328.8 MB, free: 4.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.819e-06/0.004904, allocations: 25.7 kB / 328.8 MB, free: 4.016 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.866e-05/0.004993, allocations: 136.2 kB / 328.9 MB, free: 3.879 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.005016, allocations: 23.83 kB / 329 MB, free: 3.855 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.909e-05/0.005045, allocations: 17.7 kB / 329 MB, free: 3.832 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.02e-05/0.005125, allocations: 310.8 kB / 329.3 MB, free: 3.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.005136, allocations: 8.062 kB / 329.3 MB, free: 3.512 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.075e-05/0.005147, allocations: 7.984 kB / 329.3 MB, free: 3.504 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.643e-05/0.005173, allocations: 12.86 kB / 329.3 MB, free: 3.488 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.005175, allocations: 0 / 329.3 MB, free: 3.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.145e-05/0.005237, allocations: 53.62 kB / 329.4 MB, free: 3.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.005249, allocations: 7.938 kB / 329.4 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.005253, allocations: 0 / 329.4 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.005266, allocations: 4 kB / 329.4 MB, free: 3.418 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.939e-05/0.005356, allocations: 11.98 kB / 329.4 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.005361, allocations: 3.938 kB / 329.4 MB, free: 3.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.034e-05/0.005381, allocations: 7.953 kB / 329.4 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.005388, allocations: 0 / 329.4 MB, free: 3.395 MB / 298.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 8.599e-05/0.005474, allocations: 116.7 kB / 329.5 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.288e-05/0.005496, allocations: 7.984 kB / 329.5 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.278e-05/0.005519, allocations: 4.125 kB / 329.5 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.005522, allocations: 4 kB / 329.5 MB, free: 3.254 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.005526, allocations: 3.938 kB / 329.5 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.005529, allocations: 4 kB / 329.5 MB, free: 3.246 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.005768, allocations: 210.8 kB / 329.7 MB, free: 3.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.005772, allocations: 3.984 kB / 329.7 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.431e-05/0.005806, allocations: 8 kB / 329.8 MB, free: 3.004 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.00581, allocations: 4.234 kB / 329.8 MB, free: 3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.005817, allocations: 8 kB / 329.8 MB, free: 2.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.005823, allocations: 4 kB / 329.8 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.005826, allocations: 3.938 kB / 329.8 MB, free: 2.984 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.513e-05/0.005901, allocations: 143.5 kB / 329.9 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.436e-06/0.005909, allocations: 3.984 kB / 329.9 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.225e-06/0.005918, allocations: 4 kB / 329.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.755e-05/0.005945, allocations: 8 kB / 329.9 MB, free: 2.812 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.179e-05/0.005957, allocations: 3.938 kB / 329.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.00596, allocations: 0 / 329.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.767e-05/0.005977, allocations: 16.84 kB / 330 MB, free: 2.789 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005977, allocations: 0 / 330 MB, free: 2.789 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001289/0.006106, allocations: 27.78 kB / 330 MB, free: 2.762 MB / 298.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.166e-05/0.006178, allocations: 72.42 kB / 330 MB, free: 2.684 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.927e-05/0.006237, allocations: 29.28 kB / 330.1 MB, free: 2.652 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.00624, allocations: 0 / 330.1 MB, free: 2.652 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.418e-06/0.006249, allocations: 16.86 kB / 330.1 MB, free: 2.633 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.006383, allocations: 20.66 kB / 330.1 MB, free: 2.617 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003216/0.006705, allocations: 258.7 kB / 330.4 MB, free: 2.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.994e-05/0.006755, allocations: 87.25 kB / 330.5 MB, free: 2.227 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.724e-05/0.006782, allocations: 4 kB / 330.5 MB, free: 2.223 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.937e-05/0.006831, allocations: 63.36 kB / 330.5 MB, free: 2.16 MB / 298.7 MB Notification: Performance of SimCode: time 7.22e-07/0.006832, allocations: 0 / 330.5 MB, free: 2.16 MB / 298.7 MB Notification: Performance of Templates: time 0.002362/0.009193, allocations: 0.7314 MB / 331.2 MB, free: 1.449 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.9449850050732493]