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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009486/0.0009486, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001151/0.0021, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006507/0.0006507, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001076/0.001726, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8967/0.8967, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1705/1.067, allocations: 52.49 MB / 238.5 MB, free: 7.613 MB / 234.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.1481/0.1481, allocations: 32.8 MB / 272 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01994/0.168, allocations: 12.54 MB / 284.5 MB, free: 9.699 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.503e-06/1.503e-06, allocations: 0 / 285.8 MB, free: 8.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.011e-05/2.161e-05, allocations: 5.547 kB / 285.8 MB, free: 8.402 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001925/0.001947, allocations: 1.622 MB / 287.5 MB, free: 6.77 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 9.622e-05/0.002043, allocations: 47.78 kB / 287.5 MB, free: 6.723 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.388e-05/0.002097, allocations: 4 kB / 287.5 MB, free: 6.719 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.485e-05/0.002172, allocations: 27.72 kB / 287.5 MB, free: 6.691 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.508e-05/0.002187, allocations: 4 kB / 287.5 MB, free: 6.688 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.457e-05/0.002281, allocations: 27.97 kB / 287.6 MB, free: 6.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.941e-05/0.002371, allocations: 67.78 kB / 287.6 MB, free: 6.594 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.002529, allocations: 80.27 kB / 287.7 MB, free: 6.508 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.799e-05/0.002597, allocations: 59.88 kB / 287.8 MB, free: 6.449 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.566e-05/0.002652, allocations: 31.89 kB / 287.8 MB, free: 6.418 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.248e-05/0.002675, allocations: 12 kB / 287.8 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.17e-05/0.002686, allocations: 8 kB / 287.8 MB, free: 6.398 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.722e-05/0.002744, allocations: 55.83 kB / 287.9 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.738e-05/0.002781, allocations: 31.94 kB / 287.9 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.002901, allocations: 115.5 kB / 288 MB, free: 6.199 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.002912, allocations: 0 / 288 MB, free: 6.199 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.002912, allocations: 3.938 kB / 288 MB, free: 6.195 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.002922, allocations: 0 / 288 MB, free: 6.195 MB / 282.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.000355/0.003276, allocations: 360.4 kB / 288.4 MB, free: 5.82 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.003307, allocations: 8.031 kB / 288.4 MB, free: 5.812 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.277e-05/0.00335, allocations: 28.92 kB / 288.4 MB, free: 5.785 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.00348, allocations: 145.6 kB / 288.6 MB, free: 5.617 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.003493, allocations: 16.69 kB / 288.6 MB, free: 5.602 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.00351, allocations: 16.38 kB / 288.6 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.003667, allocations: 133.6 kB / 288.7 MB, free: 5.445 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.003674, allocations: 4.188 kB / 288.7 MB, free: 5.441 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.003688, allocations: 12.38 kB / 288.7 MB, free: 5.43 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.003694, allocations: 8.125 kB / 288.7 MB, free: 5.422 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.734e-05/0.003732, allocations: 39.28 kB / 288.8 MB, free: 5.387 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003192/0.004051, allocations: 333.4 kB / 289.1 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.621e-05/0.004097, allocations: 30.56 kB / 289.1 MB, free: 5.008 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.017e-05/0.004117, allocations: 24.8 kB / 289.2 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-06/0.004123, allocations: 0 / 289.2 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.004143, allocations: 34.56 kB / 289.2 MB, free: 4.938 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 1.163e-06/0.004144, allocations: 0 / 289.2 MB, free: 4.938 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001026/0.004246, allocations: 53.81 kB / 289.2 MB, free: 4.879 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.542e-05/0.004272, allocations: 55.34 kB / 289.3 MB, free: 4.812 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.136e-05/0.004323, allocations: 114.7 kB / 289.4 MB, free: 4.688 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.266e-06/0.004331, allocations: 25.7 kB / 289.4 MB, free: 4.656 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.348e-05/0.004375, allocations: 140.1 kB / 289.6 MB, free: 4.516 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.088e-05/0.004396, allocations: 23.83 kB / 289.6 MB, free: 4.492 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.086e-05/0.004417, allocations: 13.72 kB / 289.6 MB, free: 4.473 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.789e-05/0.004485, allocations: 322.8 kB / 289.9 MB, free: 4.148 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.345e-06/0.004493, allocations: 4 kB / 289.9 MB, free: 4.145 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.021e-05/0.004503, allocations: 11.98 kB / 289.9 MB, free: 4.133 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.901e-05/0.004522, allocations: 12.86 kB / 290 MB, free: 4.117 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.004524, allocations: 0 / 290 MB, free: 4.117 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 4.188e-05/0.004566, allocations: 41.69 kB / 290 MB, free: 4.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.004577, allocations: 8 kB / 290 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.00458, allocations: 0 / 290 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.00459, allocations: 0 / 290 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.989e-05/0.00465, allocations: 15.92 kB / 290 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.004654, allocations: 3.938 kB / 290 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.381e-05/0.004668, allocations: 8 kB / 290 MB, free: 4.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.004673, allocations: 8.25 kB / 290 MB, free: 4.027 MB / 282.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 5.221e-05/0.004725, allocations: 108.7 kB / 290.1 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.227e-05/0.004737, allocations: 4 kB / 290.1 MB, free: 3.906 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.763e-05/0.004755, allocations: 12.11 kB / 290.2 MB, free: 3.898 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.004757, allocations: 4 kB / 290.2 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.00476, allocations: 3.938 kB / 290.2 MB, free: 3.891 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.004762, allocations: 0 / 290.2 MB, free: 3.891 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001567/0.004919, allocations: 219.2 kB / 290.4 MB, free: 3.652 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.00492, allocations: 0 / 290.4 MB, free: 3.652 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.628e-05/0.004946, allocations: 19.98 kB / 290.4 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-06/0.004951, allocations: 4 kB / 290.4 MB, free: 3.629 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.004954, allocations: 4 kB / 290.4 MB, free: 3.625 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-06/0.004959, allocations: 3.938 kB / 290.4 MB, free: 3.621 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.004961, allocations: 4 kB / 290.4 MB, free: 3.617 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.004962, allocations: 0 / 290.4 MB, free: 3.617 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.377e-05/0.005026, allocations: 139.5 kB / 290.6 MB, free: 3.465 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.183e-06/0.005033, allocations: 4 kB / 290.6 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.499e-05/0.005058, allocations: 3.984 kB / 290.6 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.07e-05/0.005078, allocations: 3.938 kB / 290.6 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.005081, allocations: 8 kB / 290.6 MB, free: 3.445 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.484e-05/0.005096, allocations: 20.81 kB / 290.6 MB, free: 3.422 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005096, allocations: 0 / 290.6 MB, free: 3.422 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001234/0.00522, allocations: 31.78 kB / 290.6 MB, free: 3.391 MB / 282.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.76e-05/0.005287, allocations: 72.42 kB / 290.7 MB, free: 3.312 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 5.399e-05/0.005341, allocations: 16.86 kB / 290.7 MB, free: 3.293 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.005345, allocations: 4 kB / 290.7 MB, free: 3.289 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.027e-05/0.005366, allocations: 24.78 kB / 290.7 MB, free: 3.262 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.005555, allocations: 178.2 kB / 290.9 MB, free: 3.051 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004799/0.006034, allocations: 281.5 kB / 291.2 MB, free: 2.742 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.156e-05/0.006076, allocations: 79.31 kB / 291.3 MB, free: 2.645 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.163e-05/0.006098, allocations: 7.984 kB / 291.3 MB, free: 2.637 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.796e-05/0.006156, allocations: 59.38 kB / 291.3 MB, free: 2.578 MB / 282.7 MB Notification: Performance of SimCode: time 9.82e-07/0.006157, allocations: 0 / 291.3 MB, free: 2.578 MB / 282.7 MB Notification: Performance of Templates: time 0.002295/0.008452, allocations: 0.8057 MB / 292.1 MB, free: 1.793 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.513185084797442]