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.001264/0.001264, 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.001464/0.001464, allocations: 171.9 kB / 24.92 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 0.9642/0.9642, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.2487/0.2487, allocations: 32.8 MB / 294.6 MB, free: 1.211 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.573e-06/1.573e-06, allocations: 3.938 kB / 323.2 MB, free: 9.734 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.5e-05/2.657e-05, allocations: 3.672 kB / 323.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002049/0.002076, allocations: 1.578 MB / 324.8 MB, free: 8.141 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002237/0.002299, allocations: 59.77 kB / 324.8 MB, free: 8.082 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.686e-05/0.002356, allocations: 3.938 kB / 324.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.002482, allocations: 27.78 kB / 324.9 MB, free: 8.051 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.961e-05/0.002502, allocations: 3.938 kB / 324.9 MB, free: 8.047 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001464/0.002648, allocations: 27.97 kB / 324.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.215e-05/0.00274, allocations: 71.8 kB / 325 MB, free: 7.949 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.002909, allocations: 88.88 kB / 325.1 MB, free: 7.855 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.842e-05/0.002967, allocations: 51.89 kB / 325.1 MB, free: 7.805 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.826e-05/0.003025, allocations: 35.89 kB / 325.2 MB, free: 7.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.224e-05/0.003048, allocations: 8 kB / 325.2 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.367e-05/0.003061, allocations: 8 kB / 325.2 MB, free: 7.754 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.178e-05/0.003123, allocations: 63.81 kB / 325.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.078e-05/0.003164, allocations: 43.89 kB / 325.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.003288, allocations: 119.5 kB / 325.4 MB, free: 7.531 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.003291, allocations: 4 kB / 325.4 MB, free: 7.527 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.003292, allocations: 0 / 325.4 MB, free: 7.527 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.003296, allocations: 0 / 325.4 MB, free: 7.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.0003106/0.003606, allocations: 337.9 kB / 325.7 MB, free: 7.176 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.003641, allocations: 8.031 kB / 325.7 MB, free: 7.168 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.759e-05/0.003678, allocations: 28.92 kB / 325.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.003815, allocations: 157.5 kB / 325.9 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.003828, allocations: 16.75 kB / 325.9 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.003847, allocations: 16.38 kB / 325.9 MB, free: 6.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.004, allocations: 125.9 kB / 326.1 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.004008, allocations: 192 / 326.1 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.004021, allocations: 12.38 kB / 326.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.004028, allocations: 8.125 kB / 326.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.717e-05/0.004065, allocations: 39.11 kB / 326.1 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003103/0.004376, allocations: 329.4 kB / 326.5 MB, free: 6.406 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.595e-05/0.004422, allocations: 30.58 kB / 326.5 MB, free: 6.367 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.749e-05/0.004439, allocations: 12.86 kB / 326.5 MB, free: 6.352 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.004451, allocations: 7.984 kB / 326.5 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.00447, allocations: 34.5 kB / 326.5 MB, free: 6.301 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.283e-06/0.004471, allocations: 0 / 326.5 MB, free: 6.301 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 9.756e-05/0.004568, allocations: 57.8 kB / 326.6 MB, free: 6.238 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.699e-05/0.004595, allocations: 55.34 kB / 326.6 MB, free: 6.172 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.959e-05/0.004645, allocations: 118.6 kB / 326.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.704e-06/0.004653, allocations: 25.7 kB / 326.8 MB, free: 6.012 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.559e-05/0.004698, allocations: 144.2 kB / 326.9 MB, free: 5.867 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.004716, allocations: 11.84 kB / 326.9 MB, free: 5.855 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.312e-05/0.004739, allocations: 13.72 kB / 327 MB, free: 5.836 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.508e-05/0.004804, allocations: 322.8 kB / 327.3 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.747e-06/0.004813, allocations: 8.25 kB / 327.3 MB, free: 5.504 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.286e-06/0.004821, allocations: 8 kB / 327.3 MB, free: 5.496 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.423e-05/0.004845, allocations: 20.78 kB / 327.3 MB, free: 5.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.004847, allocations: 4 kB / 327.3 MB, free: 5.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 4.419e-05/0.004891, allocations: 41.69 kB / 327.3 MB, free: 5.422 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.004901, allocations: 4 kB / 327.4 MB, free: 5.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.004906, allocations: 4 kB / 327.4 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.085e-06/0.004914, allocations: 0 / 327.4 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.346e-05/0.004968, allocations: 11.98 kB / 327.4 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.065e-06/0.004971, allocations: 3.938 kB / 327.4 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.163e-05/0.004983, allocations: 3.953 kB / 327.4 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-06/0.004989, allocations: 4 kB / 327.4 MB, free: 5.391 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 6.166e-05/0.00505, allocations: 120.6 kB / 327.5 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.261e-05/0.005063, allocations: 0 / 327.5 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.918e-05/0.005082, allocations: 12.12 kB / 327.5 MB, free: 5.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.005084, allocations: 0 / 327.5 MB, free: 5.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.005087, allocations: 7.922 kB / 327.5 MB, free: 5.242 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.00509, allocations: 0 / 327.5 MB, free: 5.242 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.005253, allocations: 214.8 kB / 327.7 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.005254, allocations: 0 / 327.7 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.77e-05/0.005281, allocations: 15.92 kB / 327.7 MB, free: 4.992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.005283, allocations: 0 / 327.7 MB, free: 4.992 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.527e-06/0.005287, allocations: 0 / 327.7 MB, free: 4.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.005288, allocations: 4.25 kB / 327.7 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.005291, allocations: 7.938 kB / 327.8 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.196e-05/0.005353, allocations: 139.5 kB / 327.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-06/0.00536, allocations: 8.609 kB / 327.9 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.164e-06/0.005368, allocations: 0 / 327.9 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.547e-05/0.005393, allocations: 3.984 kB / 327.9 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.072e-05/0.005404, allocations: 11.88 kB / 327.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.005406, allocations: 0 / 327.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.282e-05/0.005419, allocations: 12.84 kB / 327.9 MB, free: 4.789 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005419, allocations: 0 / 327.9 MB, free: 4.789 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001236/0.005542, allocations: 39.72 kB / 328 MB, free: 4.75 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 6.903e-05/0.005611, allocations: 72.42 kB / 328 MB, free: 4.672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.014e-05/0.005662, allocations: 16.86 kB / 328.1 MB, free: 4.652 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.005664, allocations: 4 kB / 328.1 MB, free: 4.648 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.948e-06/0.005674, allocations: 16.78 kB / 328.1 MB, free: 4.629 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.005799, allocations: 12.75 kB / 328.1 MB, free: 4.617 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003165/0.006115, allocations: 267 kB / 328.3 MB, free: 4.324 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.57e-05/0.006161, allocations: 82.56 kB / 328.4 MB, free: 4.227 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.298e-05/0.006194, allocations: 7.984 kB / 328.4 MB, free: 4.219 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.256e-05/0.006247, allocations: 59.38 kB / 328.5 MB, free: 4.16 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.006247, allocations: 0 / 328.5 MB, free: 4.16 MB / 298.7 MB Notification: Performance of Templates: time 0.002606/0.008854, allocations: 0.7338 MB / 329.2 MB, free: 3.449 MB / 298.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.9641568739898503]