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.001421/0.001421, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 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.001644/0.001644, allocations: 212.2 kB / 23.73 MB, free: 4.16 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.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.2236/0.2236, allocations: 44.94 MB / 358.8 MB, free: 6.031 MB / 286.1 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.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.002109/0.002109, allocations: 71.89 kB / 0.4935 GB, free: 10.01 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3855, allocations: 65.46 MB / 0.5574 GB, free: 7.441 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003539/0.3891, allocations: 1.545 MB / 0.5589 GB, free: 5.887 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003162/0.3894, allocations: 63.75 kB / 0.559 GB, free: 5.824 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.543e-05/0.3895, allocations: 3.938 kB / 0.559 GB, free: 5.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000174/0.3896, allocations: 19.86 kB / 0.559 GB, free: 5.801 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.527e-05/0.3896, allocations: 3.938 kB / 0.559 GB, free: 5.797 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.3898, allocations: 23.97 kB / 0.5591 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001487/0.39, allocations: 67.88 kB / 0.5591 GB, free: 5.707 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003126/0.3903, allocations: 99.53 kB / 0.5592 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.803e-05/0.3903, allocations: 39.86 kB / 0.5593 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.209e-05/0.3904, allocations: 35.84 kB / 0.5593 GB, free: 5.527 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.852e-05/0.3905, allocations: 8 kB / 0.5593 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.428e-05/0.3905, allocations: 8 kB / 0.5593 GB, free: 5.512 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.863e-05/0.3906, allocations: 67.81 kB / 0.5594 GB, free: 5.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.051e-05/0.3907, allocations: 55.67 kB / 0.5594 GB, free: 5.391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002426/0.3909, allocations: 161.6 kB / 0.5596 GB, free: 5.238 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3909, allocations: 0 / 0.5596 GB, free: 5.238 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3909, allocations: 0 / 0.5596 GB, free: 5.238 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.3909, allocations: 0 / 0.5596 GB, free: 5.238 MB / 398.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.000597/0.3915, allocations: 370.2 kB / 0.5599 GB, free: 4.848 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.3916, allocations: 8.031 kB / 0.5599 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.912e-05/0.3916, allocations: 16.84 kB / 0.56 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.3919, allocations: 150.3 kB / 0.5601 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.3919, allocations: 16.75 kB / 0.5601 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.171e-05/0.3919, allocations: 20.31 kB / 0.5601 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.3923, allocations: 193.1 kB / 0.5603 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.3923, allocations: 3.938 kB / 0.5603 GB, free: 4.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.3923, allocations: 12 kB / 0.5603 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.3923, allocations: 4 kB / 0.5603 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002338/0.3926, allocations: 131.2 kB / 0.5605 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006104/0.3932, allocations: 385.1 kB / 0.5608 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.3933, allocations: 42.5 kB / 0.5609 GB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.881e-05/0.3934, allocations: 24.97 kB / 0.5609 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.3934, allocations: 4 kB / 0.5609 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.3934, allocations: 38.5 kB / 0.5609 GB, free: 3.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.273e-06/0.3934, allocations: 0 / 0.5609 GB, free: 3.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003021/0.3937, allocations: 77.62 kB / 0.561 GB, free: 3.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3938, allocations: 51.41 kB / 0.5611 GB, free: 3.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.3939, allocations: 113.8 kB / 0.5612 GB, free: 3.477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.3939, allocations: 29.64 kB / 0.5612 GB, free: 3.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.019e-05/0.394, allocations: 140.1 kB / 0.5613 GB, free: 3.297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.049e-05/0.394, allocations: 23.84 kB / 0.5614 GB, free: 3.273 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.3941, allocations: 13.72 kB / 0.5614 GB, free: 3.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3942, allocations: 314.8 kB / 0.5617 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.304e-05/0.3942, allocations: 15.98 kB / 0.5617 GB, free: 2.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.779e-05/0.3943, allocations: 15.98 kB / 0.5617 GB, free: 2.906 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.23e-05/0.3944, allocations: 33.22 kB / 0.5617 GB, free: 2.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3944, allocations: 0 / 0.5617 GB, free: 2.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001238/0.3945, allocations: 65.62 kB / 0.5618 GB, free: 2.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.3945, allocations: 6.188 kB / 0.5618 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3945, allocations: 3.938 kB / 0.5618 GB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.3945, allocations: 0 / 0.5618 GB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.464e-05/0.3946, allocations: 19.98 kB / 0.5618 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3946, allocations: 0 / 0.5618 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.015e-05/0.3947, allocations: 4 kB / 0.5618 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.3947, allocations: 0 / 0.5618 GB, free: 2.77 MB / 398.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 0.0001327/0.3948, allocations: 141.8 kB / 0.562 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.3948, allocations: 11.83 kB / 0.562 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.3948, allocations: 4.062 kB / 0.562 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3949, allocations: 4 kB / 0.562 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3949, allocations: 0 / 0.562 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3949, allocations: 0 / 0.562 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003639/0.3952, allocations: 298.1 kB / 0.5623 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3952, allocations: 0 / 0.5623 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-05/0.3953, allocations: 11.98 kB / 0.5623 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.3953, allocations: 0 / 0.5623 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.3953, allocations: 0 / 0.5623 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3953, allocations: 0 / 0.5623 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3953, allocations: 0 / 0.5623 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.3955, allocations: 171.4 kB / 0.5624 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.015e-05/0.3955, allocations: 4 kB / 0.5624 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.3955, allocations: 0 / 0.5624 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.528e-05/0.3955, allocations: 8 kB / 0.5624 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.864e-05/0.3956, allocations: 192 / 0.5624 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.034e-06/0.3956, allocations: 7.984 kB / 0.5625 GB, free: 2.055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.296e-05/0.3956, allocations: 87.28 kB / 0.5625 GB, free: 1.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3956, allocations: 0 / 0.5625 GB, free: 1.969 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002378/0.3959, allocations: 27.84 kB / 0.5626 GB, free: 1.941 MB / 398.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 0.0001001/0.396, allocations: 91.25 kB / 0.5627 GB, free: 1.844 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001572/0.3961, allocations: 31.97 kB / 0.5627 GB, free: 1.812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.3961, allocations: 0 / 0.5627 GB, free: 1.812 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.179e-05/0.3962, allocations: 27.88 kB / 0.5627 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.3966, allocations: 20.44 kB / 0.5627 GB, free: 1.766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005664/0.3971, allocations: 267.4 kB / 0.563 GB, free: 1.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001392/0.3973, allocations: 114.1 kB / 0.5631 GB, free: 1.344 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.223e-05/0.3973, allocations: 11.77 kB / 0.5631 GB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.877e-05/0.3973, allocations: 7.438 kB / 0.5631 GB, free: 1.324 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3973, allocations: 4 kB / 0.5631 GB, free: 1.32 MB / 398.1 MB Notification: Performance of Templates: time 0.003511/0.4008, allocations: 0.7337 MB / 0.5638 GB, free: 0.6094 MB / 398.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/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.270824363455176]