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.001137/0.001137, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.004273/0.004273, allocations: 167.3 kB / 24.99 MB, free: 8.203 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.9996/0.9996, allocations: 177.1 MB / 205.3 MB, free: 5.609 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.2862/0.2862, allocations: 34.26 MB / 296 MB, free: 0.793 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.703e-06/1.703e-06, allocations: 0 / 378 MB, free: 2.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.802e-05/2.973e-05, allocations: 2.312 kB / 378 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002194/0.002224, allocations: 1.575 MB / 379.6 MB, free: 1.395 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002368/0.00246, allocations: 67.75 kB / 379.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.49e-05/0.002535, allocations: 0 / 379.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.002682, allocations: 23.78 kB / 379.7 MB, free: 1.305 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.191e-05/0.002704, allocations: 3.938 kB / 379.7 MB, free: 1.301 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000168/0.002872, allocations: 27.97 kB / 379.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.002979, allocations: 67.81 kB / 379.8 MB, free: 1.207 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.003178, allocations: 79.62 kB / 379.9 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.418e-05/0.003242, allocations: 59.88 kB / 379.9 MB, free: 1.062 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.03e-05/0.003302, allocations: 35.88 kB / 379.9 MB, free: 1.027 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.573e-05/0.003328, allocations: 8 kB / 380 MB, free: 1.02 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.523e-05/0.003343, allocations: 8 kB / 380 MB, free: 1.012 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.662e-05/0.00341, allocations: 67.81 kB / 380 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.676e-05/0.003456, allocations: 39.91 kB / 380.1 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.003598, allocations: 115.5 kB / 380.2 MB, free: 0.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.003601, allocations: 7.938 kB / 380.2 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.003602, allocations: 0 / 380.2 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.003607, allocations: 0 / 380.2 MB, free: 0.7852 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.0004983/0.004105, allocations: 468.4 kB / 380.6 MB, free: 300 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.004142, allocations: 12.03 kB / 380.7 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.937e-05/0.004192, allocations: 36.8 kB / 380.7 MB, free: 252 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.004339, allocations: 148.4 kB / 380.8 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.004356, allocations: 20.73 kB / 380.9 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.004374, allocations: 16.38 kB / 380.9 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/0.004565, allocations: 133.9 kB / 381 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.004572, allocations: 192 / 381 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.004585, allocations: 4.375 kB / 381 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.004594, allocations: 8.125 kB / 381 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.384e-05/0.004668, allocations: 59.27 kB / 381.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004313/0.0051, allocations: 456.3 kB / 381.5 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.44e-05/0.005154, allocations: 42.98 kB / 381.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.278e-05/0.005187, allocations: 27.8 kB / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.005199, allocations: 0 / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.00522, allocations: 37.39 kB / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 8.42e-07/0.005221, allocations: 0 / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001388/0.005359, allocations: 61.58 kB / 381.7 MB, free: 15.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.005393, allocations: 59.41 kB / 381.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.617e-05/0.005469, allocations: 165.9 kB / 381.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.007e-06/0.005478, allocations: 25.7 kB / 381.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.141e-05/0.00554, allocations: 186.9 kB / 382.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.00556, allocations: 23.78 kB / 382.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/0.005591, allocations: 23.31 kB / 382.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.0057, allocations: 0.4884 MB / 382.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.195e-05/0.005712, allocations: 4 kB / 382.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.588e-06/0.005721, allocations: 4 kB / 382.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.365e-05/0.005755, allocations: 32.06 kB / 382.7 MB, free: 14.08 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.005757, allocations: 0 / 382.7 MB, free: 14.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 5.994e-05/0.005817, allocations: 57.64 kB / 382.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.005828, allocations: 4 kB / 382.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.005833, allocations: 0 / 382.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.005844, allocations: 3.938 kB / 382.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.726e-05/0.005901, allocations: 15.92 kB / 382.8 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.005906, allocations: 320 / 382.8 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.124e-05/0.005917, allocations: 4 kB / 382.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.005922, allocations: 0 / 382.8 MB, free: 13.99 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.298e-05/0.005985, allocations: 160.6 kB / 382.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.005998, allocations: 3.953 kB / 382.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.82e-05/0.006016, allocations: 16.12 kB / 383 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.006018, allocations: 3.938 kB / 383 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.006021, allocations: 0 / 383 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.006024, allocations: 0 / 383 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.006223, allocations: 345.4 kB / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.006224, allocations: 0 / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.947e-05/0.006243, allocations: 8 kB / 383.3 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.006246, allocations: 3.938 kB / 383.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.006252, allocations: 4 kB / 383.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.006254, allocations: 3.984 kB / 383.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.006254, allocations: 0 / 383.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.46e-05/0.006339, allocations: 212 kB / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.961e-06/0.006345, allocations: 8 kB / 383.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.006355, allocations: 7.922 kB / 383.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.549e-05/0.006381, allocations: 0 / 383.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.128e-05/0.006392, allocations: 0 / 383.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.006394, allocations: 4 kB / 383.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.829e-05/0.006433, allocations: 131.2 kB / 383.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006433, allocations: 0 / 383.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001456/0.006578, allocations: 35.72 kB / 383.7 MB, free: 13 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.779e-05/0.006646, allocations: 91.25 kB / 383.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.425e-05/0.00672, allocations: 31.67 kB / 383.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.006721, allocations: 0 / 383.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.45e-05/0.006736, allocations: 19.62 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001672/0.006903, allocations: 11.98 kB / 383.9 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003214/0.007225, allocations: 271.2 kB / 384.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.534e-05/0.00727, allocations: 83.31 kB / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.852e-05/0.007288, allocations: 4 kB / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.658e-05/0.007305, allocations: 8.5 kB / 384.2 MB, free: 12.42 MB / 362.7 MB Notification: Performance of SimCode: time 4.7e-07/0.007305, allocations: 8 kB / 384.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of Templates: time 0.002121/0.009426, allocations: 0.6631 MB / 384.9 MB, free: 11.77 MB / 362.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: 3.24326767004095]