Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.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.0007648/0.0007648, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001117/0.001882, 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.0009493/0.0009493, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001403/0.002352, 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.9584/0.9584, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1684/1.127, allocations: 52.49 MB / 238.5 MB, free: 7.598 MB / 234.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 239.7 MB, free: 6.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.371e-05, allocations: 3.125 kB / 239.7 MB, free: 6.332 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002898/0.002922, allocations: 1.6 MB / 241.3 MB, free: 4.742 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.004807, allocations: 0.8945 MB / 242.2 MB, free: 3.844 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.617e-05/0.004863, allocations: 0 / 242.2 MB, free: 3.844 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.163e-05/0.004945, allocations: 16.56 kB / 242.3 MB, free: 3.828 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.367e-05/0.005018, allocations: 24.48 kB / 242.3 MB, free: 3.805 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.005221, allocations: 60.52 kB / 242.3 MB, free: 3.746 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.005452, allocations: 155.6 kB / 242.5 MB, free: 3.594 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.191e-05/0.005544, allocations: 18.89 kB / 242.5 MB, free: 3.57 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007243/0.006268, allocations: 0.6005 MB / 243.1 MB, free: 2.969 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001345/0.006402, allocations: 66.33 kB / 243.2 MB, free: 2.906 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.946e-05/0.006452, allocations: 12 kB / 243.2 MB, free: 2.895 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.63e-05/0.006488, allocations: 12 kB / 243.2 MB, free: 2.883 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.988e-05/0.006578, allocations: 71.72 kB / 243.3 MB, free: 2.812 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.303e-05/0.006661, allocations: 55.75 kB / 243.3 MB, free: 2.758 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.006992, allocations: 310.9 kB / 243.6 MB, free: 2.453 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.311e-05/0.007005, allocations: 0 / 243.6 MB, free: 2.453 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.007005, allocations: 1.469 kB / 243.6 MB, free: 2.453 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.007021, allocations: 0 / 243.6 MB, free: 2.453 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008046/0.007825, allocations: 0.7601 MB / 244.4 MB, free: 1.637 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.007865, allocations: 12.03 kB / 244.4 MB, free: 1.625 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.181e-05/0.007947, allocations: 33.72 kB / 244.4 MB, free: 1.594 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.008199, allocations: 228 kB / 244.7 MB, free: 1.344 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.008224, allocations: 9.469 kB / 244.7 MB, free: 1.336 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.098e-05/0.008255, allocations: 8.375 kB / 244.7 MB, free: 1.328 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003643/0.008619, allocations: 282.5 kB / 245 MB, free: 1.012 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.00863, allocations: 4.188 kB / 245 MB, free: 1.008 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.008654, allocations: 4.375 kB / 245 MB, free: 1.004 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.008663, allocations: 7.875 kB / 245 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.008817, allocations: 196.4 kB / 245.2 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003863/0.009204, allocations: 232.1 kB / 245.4 MB, free: 0.5312 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001774/0.009381, allocations: 211 kB / 245.6 MB, free: 292 kB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.009519, allocations: 198.7 kB / 245.8 MB, free: 60 kB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.166e-06/0.009527, allocations: 4 kB / 245.8 MB, free: 56 kB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003118/0.009839, allocations: 359.6 kB / 246.1 MB, free: 15.65 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.009841, allocations: 0 / 246.1 MB, free: 15.65 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007986/0.01064, allocations: 0.6426 MB / 246.8 MB, free: 14.91 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.297e-05/0.01073, allocations: 178.2 kB / 247 MB, free: 14.7 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004159/0.01115, allocations: 395.1 kB / 247.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.01118, allocations: 33.7 kB / 247.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.56e-05/0.01123, allocations: 105 kB / 247.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.052e-05/0.01129, allocations: 39.77 kB / 247.5 MB, free: 14.12 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.01139, allocations: 77.48 kB / 247.6 MB, free: 14.04 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.376e-05/0.01148, allocations: 330.8 kB / 247.9 MB, free: 13.71 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.01162, allocations: 189.5 kB / 248.1 MB, free: 13.49 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.01176, allocations: 206.2 kB / 248.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000261/0.01202, allocations: 399.4 kB / 248.7 MB, free: 12.8 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.01202, allocations: 1.781 kB / 248.7 MB, free: 12.8 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003443/0.01236, allocations: 450.6 kB / 249.1 MB, free: 12.29 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.264e-05/0.01246, allocations: 152.5 kB / 249.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.01246, allocations: 0 / 249.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.01248, allocations: 8.641 kB / 249.3 MB, free: 12.1 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.91e-05/0.0125, allocations: 0 / 249.3 MB, free: 12.1 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/0.0125, allocations: 0.6875 kB / 249.3 MB, free: 12.1 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.01263, allocations: 13.97 kB / 249.3 MB, free: 12.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.576e-05/0.01271, allocations: 65.53 kB / 249.4 MB, free: 12.02 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0003305/0.01304, allocations: 379.1 kB / 249.7 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.028e-05/0.0131, allocations: 39.91 kB / 249.8 MB, free: 11.57 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.0132, allocations: 59.41 kB / 249.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.0132, allocations: 1.469 kB / 249.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.01321, allocations: 0 / 249.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.01321, allocations: 0 / 249.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.01381, allocations: 0.6954 MB / 250.5 MB, free: 10.73 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.01382, allocations: 0 / 250.5 MB, free: 10.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.865e-06/0.01382, allocations: 4.531 kB / 250.5 MB, free: 10.73 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002516/0.01408, allocations: 135.6 kB / 250.7 MB, free: 10.6 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.01408, allocations: 8.516 kB / 250.7 MB, free: 10.59 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.01411, allocations: 16.48 kB / 250.7 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.01411, allocations: 0.8125 kB / 250.7 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.01411, allocations: 0 / 250.7 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003744/0.01448, allocations: 0.5762 MB / 251.3 MB, free: 9.922 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.717e-05/0.01452, allocations: 12 kB / 251.3 MB, free: 9.91 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.231e-05/0.01461, allocations: 19.98 kB / 251.3 MB, free: 9.891 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.092e-05/0.01468, allocations: 27.97 kB / 251.3 MB, free: 9.863 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.711e-05/0.01473, allocations: 81.39 kB / 251.4 MB, free: 9.785 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001501/0.01488, allocations: 172.6 kB / 251.6 MB, free: 9.617 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01488, allocations: 0 / 251.6 MB, free: 9.617 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001571/0.01504, allocations: 51.94 kB / 251.6 MB, free: 9.566 MB / 250.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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.0001056/0.01514, allocations: 100.4 kB / 251.7 MB, free: 9.461 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003739/0.01552, allocations: 0.705 MB / 252.4 MB, free: 8.633 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.01553, allocations: 4 kB / 252.4 MB, free: 8.629 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002379/0.01576, allocations: 0.4933 MB / 252.9 MB, free: 8.039 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.0163, allocations: 0.6907 MB / 253.6 MB, free: 7.25 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009282/0.01723, allocations: 0.8415 MB / 254.5 MB, free: 6.352 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.634e-05/0.01729, allocations: 103.8 kB / 254.6 MB, free: 6.23 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.48e-05/0.01733, allocations: 8.969 kB / 254.6 MB, free: 6.219 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003091/0.01764, allocations: 215.4 kB / 254.8 MB, free: 6.008 MB / 250.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01764, allocations: 0 / 254.8 MB, free: 6.008 MB / 250.7 MB Notification: Performance of Templates: time 0.006986/0.02462, allocations: 6.441 MB / 261.2 MB, free: 15.6 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.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.574468550272286]