Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0009535/0.0009535, allocations: 80.05 kB / 20.72 MB, free: 3.766 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.000946/0.000946, allocations: 169.3 kB / 24.14 MB, free: 356 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.896/0.896, allocations: 158.6 MB / 186 MB, free: 2.762 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1362/0.1362, allocations: 32.38 MB / 270.7 MB, free: 14.6 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.MuxDemux") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 299.1 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.624e-05/2.805e-05, allocations: 2.312 kB / 299.1 MB, free: 2.207 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002451/0.002479, allocations: 1.565 MB / 300.6 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000149/0.002628, allocations: 51.72 kB / 300.7 MB, free: 0.582 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.901e-05/0.002677, allocations: 4 kB / 300.7 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.002811, allocations: 23.78 kB / 300.7 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.192e-05/0.002833, allocations: 7.922 kB / 300.7 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001188/0.002952, allocations: 23.97 kB / 300.7 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.506e-05/0.003047, allocations: 67.81 kB / 300.8 MB, free: 468 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.003229, allocations: 80.28 kB / 300.9 MB, free: 380 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.247e-05/0.003291, allocations: 59.88 kB / 300.9 MB, free: 320 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.39e-05/0.003345, allocations: 35.89 kB / 301 MB, free: 284 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.376e-05/0.003369, allocations: 8 kB / 301 MB, free: 276 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.046e-05/0.003379, allocations: 8 kB / 301 MB, free: 268 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.315e-05/0.003442, allocations: 67.8 kB / 301.1 MB, free: 200 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.141e-05/0.003484, allocations: 35.92 kB / 301.1 MB, free: 164 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.003631, allocations: 119.5 kB / 301.2 MB, free: 44 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.003635, allocations: 0 / 301.2 MB, free: 44 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.003637, allocations: 0 / 301.2 MB, free: 44 kB / 282.7 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.003643, allocations: 4 kB / 301.2 MB, free: 40 kB / 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.1276/0.1313, allocations: 328.1 kB / 301.5 MB, free: 19.58 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1313, allocations: 8.719 kB / 301.5 MB, free: 19.58 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.1313, allocations: 25.8 kB / 301.6 MB, free: 19.58 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.1315, allocations: 151.5 kB / 301.7 MB, free: 19.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.1315, allocations: 19.44 kB / 301.7 MB, free: 19.45 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.1315, allocations: 18.27 kB / 301.7 MB, free: 19.45 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.1317, allocations: 134.9 kB / 301.9 MB, free: 19.4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.1317, allocations: 192 / 301.9 MB, free: 19.4 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.1317, allocations: 9.281 kB / 301.9 MB, free: 19.4 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.1317, allocations: 4.844 kB / 301.9 MB, free: 19.4 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.431e-05/0.1317, allocations: 39.28 kB / 301.9 MB, free: 19.39 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003312/0.1321, allocations: 334.7 kB / 302.3 MB, free: 19.22 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.158e-05/0.1321, allocations: 28.05 kB / 302.3 MB, free: 19.2 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.953e-05/0.1321, allocations: 15.19 kB / 302.3 MB, free: 19.19 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-06/0.1322, allocations: 1.469 kB / 302.3 MB, free: 19.19 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.1322, allocations: 40.12 kB / 302.3 MB, free: 19.15 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 8.12e-07/0.1322, allocations: 0.5938 kB / 302.3 MB, free: 19.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001044/0.1323, allocations: 46.16 kB / 302.4 MB, free: 19.12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.1323, allocations: 52.97 kB / 302.4 MB, free: 19.06 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.313e-05/0.1324, allocations: 118.8 kB / 302.6 MB, free: 18.95 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-06/0.1324, allocations: 29.67 kB / 302.6 MB, free: 18.92 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.629e-05/0.1324, allocations: 138.5 kB / 302.7 MB, free: 18.81 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.1324, allocations: 18.03 kB / 302.7 MB, free: 18.8 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.326e-05/0.1324, allocations: 19.02 kB / 302.8 MB, free: 18.78 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 2.983e-05/0.1325, allocations: 315.2 kB / 303.1 MB, free: 18.47 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.847e-06/0.1325, allocations: 3.953 kB / 303.1 MB, free: 18.47 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.947e-06/0.1325, allocations: 3.844 kB / 303.1 MB, free: 18.47 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.369e-05/0.1325, allocations: 28.55 kB / 303.1 MB, free: 18.46 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1325, allocations: 0 / 303.1 MB, free: 18.46 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 4.221e-05/0.1325, allocations: 43.59 kB / 303.1 MB, free: 18.43 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.1326, allocations: 5.562 kB / 303.1 MB, free: 18.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1326, allocations: 5.891 kB / 303.2 MB, free: 18.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1326, allocations: 0.625 kB / 303.2 MB, free: 18.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.638e-05/0.1326, allocations: 9.156 kB / 303.2 MB, free: 18.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.675e-06/0.1326, allocations: 6.281 kB / 303.2 MB, free: 18.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.257e-05/0.1327, allocations: 2.438 kB / 303.2 MB, free: 18.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.1327, allocations: 4.594 kB / 303.2 MB, free: 18.42 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 4.652e-05/0.1327, allocations: 118 kB / 303.3 MB, free: 18.3 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.1327, allocations: 2.469 kB / 303.3 MB, free: 18.3 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.969e-05/0.1327, allocations: 10.25 kB / 303.3 MB, free: 18.3 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.1327, allocations: 3.5 kB / 303.3 MB, free: 18.3 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.1328, allocations: 1.062 kB / 303.3 MB, free: 18.3 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1328, allocations: 5.719 kB / 303.3 MB, free: 18.29 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.1329, allocations: 223.9 kB / 303.5 MB, free: 18.11 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1329, allocations: 0 / 303.5 MB, free: 18.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.457e-05/0.1329, allocations: 10.34 kB / 303.5 MB, free: 18.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1329, allocations: 3.312 kB / 303.5 MB, free: 18.11 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-06/0.1329, allocations: 4.094 kB / 303.5 MB, free: 18.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1329, allocations: 0.7031 kB / 303.5 MB, free: 18.11 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1329, allocations: 3.938 kB / 303.6 MB, free: 18.1 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.367e-05/0.133, allocations: 140.4 kB / 303.7 MB, free: 17.97 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-06/0.133, allocations: 4.266 kB / 303.7 MB, free: 17.97 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-06/0.133, allocations: 1.25 kB / 303.7 MB, free: 17.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.699e-05/0.133, allocations: 1.719 kB / 303.7 MB, free: 17.97 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.546e-05/0.1331, allocations: 7.25 kB / 303.7 MB, free: 17.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-06/0.1331, allocations: 5.125 kB / 303.7 MB, free: 17.97 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.598e-05/0.1331, allocations: 22.89 kB / 303.7 MB, free: 17.96 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1331, allocations: 0 / 303.7 MB, free: 17.96 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001228/0.1332, allocations: 28.75 kB / 303.8 MB, free: 17.94 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 7.544e-05/0.1333, allocations: 72.31 kB / 303.8 MB, free: 17.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 5.516e-05/0.1333, allocations: 22.47 kB / 303.9 MB, free: 17.87 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1333, allocations: 0 / 303.9 MB, free: 17.87 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.547e-05/0.1334, allocations: 18.08 kB / 303.9 MB, free: 17.86 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.1335, allocations: 15.92 kB / 303.9 MB, free: 17.86 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003642/0.1339, allocations: 268.7 kB / 304.1 MB, free: 17.67 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.926e-05/0.1339, allocations: 79.39 kB / 304.2 MB, free: 17.6 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.351e-05/0.1339, allocations: 5.469 kB / 304.2 MB, free: 17.6 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.713e-05/0.134, allocations: 67.62 kB / 304.3 MB, free: 17.55 MB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/0.134, allocations: 0 / 304.3 MB, free: 17.55 MB / 282.7 MB Notification: Performance of Templates: time 0.002582/0.1365, allocations: 0.7512 MB / 305 MB, free: 17.49 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.9256666339933872]