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.001366/0.001366, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 14.72 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.001527/0.001527, allocations: 164.1 kB / 24.49 MB, free: 3.453 MB / 14.72 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.474/1.474, allocations: 177.2 MB / 204.9 MB, free: 9.07 MB / 190.1 MB " [Timeout remaining time 178] 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.2237/0.2237, allocations: 32.81 MB / 294.1 MB, free: 84 kB / 270.1 MB " [Timeout remaining time 179] 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.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",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.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002345/0.002345, allocations: 67.91 kB / 440.6 MB, free: 9.496 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3852/0.3876, allocations: 65.44 MB / 0.4941 GB, free: 31.41 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002178/0.3897, allocations: 1.545 MB / 0.4956 GB, free: 30.35 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002068/0.39, allocations: 59.91 kB / 0.4957 GB, free: 30.31 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.536e-05/0.39, allocations: 7.938 kB / 0.4957 GB, free: 30.3 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.3901, allocations: 25.89 kB / 0.4957 GB, free: 30.29 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.672e-05/0.3902, allocations: 3.938 kB / 0.4957 GB, free: 30.29 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001286/0.3903, allocations: 25.22 kB / 0.4958 GB, free: 30.27 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.478e-05/0.3904, allocations: 70.64 kB / 0.4958 GB, free: 30.25 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.3906, allocations: 90.03 kB / 0.4959 GB, free: 30.2 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.409e-05/0.3906, allocations: 35.45 kB / 0.496 GB, free: 30.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.694e-05/0.3907, allocations: 38.89 kB / 0.496 GB, free: 30.17 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.3907, allocations: 6.594 kB / 0.496 GB, free: 30.17 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.628e-05/0.3907, allocations: 9.344 kB / 0.496 GB, free: 30.17 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.514e-05/0.3908, allocations: 76.06 kB / 0.4961 GB, free: 30.14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.024e-05/0.3909, allocations: 50.64 kB / 0.4961 GB, free: 30.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.391, allocations: 152.1 kB / 0.4963 GB, free: 30.04 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.391, allocations: 3.094 kB / 0.4963 GB, free: 30.04 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.391, allocations: 3.938 kB / 0.4963 GB, free: 30.04 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.391, allocations: 0 / 0.4963 GB, free: 30.04 MB / 446.1 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.0003554/0.3914, allocations: 361.2 kB / 0.4966 GB, free: 29.72 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.3914, allocations: 9.469 kB / 0.4966 GB, free: 29.72 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.99e-05/0.3914, allocations: 18.47 kB / 0.4966 GB, free: 29.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.3916, allocations: 155.2 kB / 0.4968 GB, free: 29.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.3916, allocations: 23.19 kB / 0.4968 GB, free: 29.55 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.044e-05/0.3916, allocations: 17 kB / 0.4968 GB, free: 29.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.3919, allocations: 197.6 kB / 0.497 GB, free: 29.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3919, allocations: 3.938 kB / 0.497 GB, free: 29.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.3919, allocations: 4 kB / 0.497 GB, free: 29.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.3919, allocations: 6.312 kB / 0.497 GB, free: 29.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.3921, allocations: 131.2 kB / 0.4972 GB, free: 29.42 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004045/0.3925, allocations: 393.8 kB / 0.4975 GB, free: 29.12 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.567e-05/0.3926, allocations: 38.25 kB / 0.4976 GB, free: 29.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.974e-05/0.3926, allocations: 29.22 kB / 0.4976 GB, free: 29.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.3926, allocations: 6.953 kB / 0.4976 GB, free: 29.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.532e-05/0.3927, allocations: 34.5 kB / 0.4976 GB, free: 29.04 MB / 446.1 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.3927, allocations: 0 / 0.4976 GB, free: 29.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001918/0.3929, allocations: 79.42 kB / 0.4977 GB, free: 28.99 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.183e-05/0.3929, allocations: 51.41 kB / 0.4978 GB, free: 28.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.043e-05/0.3929, allocations: 114.8 kB / 0.4979 GB, free: 28.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.891e-06/0.3929, allocations: 25.7 kB / 0.4979 GB, free: 28.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.944e-05/0.393, allocations: 140 kB / 0.498 GB, free: 28.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.393, allocations: 15.08 kB / 0.498 GB, free: 28.65 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.688e-05/0.393, allocations: 20.17 kB / 0.4981 GB, free: 28.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.989e-05/0.3931, allocations: 318 kB / 0.4984 GB, free: 28.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.537e-05/0.3931, allocations: 9.641 kB / 0.4984 GB, free: 28.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.99e-05/0.3931, allocations: 13.88 kB / 0.4984 GB, free: 28.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.319e-05/0.3932, allocations: 28.33 kB / 0.4984 GB, free: 28.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3932, allocations: 4 kB / 0.4984 GB, free: 28.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.626e-05/0.3933, allocations: 75.05 kB / 0.4985 GB, free: 28.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/0.3933, allocations: 6.5 kB / 0.4985 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-06/0.3933, allocations: 0 / 0.4985 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.348e-06/0.3933, allocations: 0 / 0.4985 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.068e-05/0.3934, allocations: 9.625 kB / 0.4985 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.545e-06/0.3934, allocations: 0 / 0.4985 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.423e-05/0.3934, allocations: 6.547 kB / 0.4985 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-06/0.3934, allocations: 0 / 0.4985 GB, free: 28.25 MB / 446.1 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.763e-05/0.3934, allocations: 137.9 kB / 0.4986 GB, free: 28.12 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.315e-05/0.3935, allocations: 15.3 kB / 0.4987 GB, free: 28.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.412e-05/0.3935, allocations: 8.125 kB / 0.4987 GB, free: 28.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.3935, allocations: 0 / 0.4987 GB, free: 28.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.3935, allocations: 3.344 kB / 0.4987 GB, free: 28.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.3935, allocations: 0 / 0.4987 GB, free: 28.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002235/0.3937, allocations: 295.2 kB / 0.499 GB, free: 27.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3937, allocations: 0 / 0.499 GB, free: 27.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.881e-05/0.3938, allocations: 13.08 kB / 0.499 GB, free: 27.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3938, allocations: 3.938 kB / 0.499 GB, free: 27.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.3938, allocations: 0 / 0.499 GB, free: 27.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3938, allocations: 7.125 kB / 0.499 GB, free: 27.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3938, allocations: 0 / 0.499 GB, free: 27.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000113/0.3939, allocations: 165.1 kB / 0.4991 GB, free: 27.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-06/0.3939, allocations: 7.219 kB / 0.4991 GB, free: 27.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.07e-05/0.3939, allocations: 0 / 0.4991 GB, free: 27.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.268e-05/0.3939, allocations: 3.344 kB / 0.4991 GB, free: 27.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.218e-05/0.394, allocations: 3.422 kB / 0.4991 GB, free: 27.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.394, allocations: 7.281 kB / 0.4992 GB, free: 27.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.684e-05/0.394, allocations: 93.09 kB / 0.4992 GB, free: 27.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.394, allocations: 0 / 0.4992 GB, free: 27.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002297/0.3942, allocations: 28.53 kB / 0.4993 GB, free: 27.57 MB / 446.1 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 5.297e-05/0.3943, allocations: 88.78 kB / 0.4994 GB, free: 27.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001268/0.3944, allocations: 34.48 kB / 0.4994 GB, free: 27.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3944, allocations: 3.469 kB / 0.4994 GB, free: 27.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 3.503e-05/0.3944, allocations: 12.84 kB / 0.4994 GB, free: 27.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.3947, allocations: 17.56 kB / 0.4994 GB, free: 27.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003906/0.3951, allocations: 267.5 kB / 0.4997 GB, free: 27.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.135e-05/0.3952, allocations: 117.2 kB / 0.4998 GB, free: 27.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.032e-05/0.3952, allocations: 10.48 kB / 0.4998 GB, free: 27.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.218e-05/0.3952, allocations: 11.62 kB / 0.4998 GB, free: 27.19 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3952, allocations: 0 / 0.4998 GB, free: 27.19 MB / 446.1 MB Notification: Performance of Templates: time 0.00285/0.3981, allocations: 0.6617 MB / 0.5005 GB, free: 27.07 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.203135855961591]