Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001333/0.001333, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.499/1.499, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 64.78 kB / 379 MB, free: 2.66 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3155, allocations: 53.36 MB / 432.4 MB, free: 6.98 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002937/0.3184, allocations: 1.599 MB / 434 MB, free: 5.379 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002104/0.3205, allocations: 0.9082 MB / 434.9 MB, free: 4.465 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 5.609e-05/0.3206, allocations: 7.938 kB / 434.9 MB, free: 4.457 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.3207, allocations: 11.92 kB / 434.9 MB, free: 4.445 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.3208, allocations: 27.78 kB / 434.9 MB, free: 4.418 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.3211, allocations: 47.89 kB / 435 MB, free: 4.371 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002425/0.3213, allocations: 167.6 kB / 435.2 MB, free: 4.207 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.3214, allocations: 17.58 kB / 435.2 MB, free: 4.184 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0007317/0.3222, allocations: 0.6317 MB / 435.8 MB, free: 3.551 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.3223, allocations: 87.62 kB / 435.9 MB, free: 3.465 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.071e-05/0.3224, allocations: 8 kB / 435.9 MB, free: 3.457 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 3.259e-05/0.3224, allocations: 16 kB / 435.9 MB, free: 3.441 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.332e-05/0.3225, allocations: 75.7 kB / 436 MB, free: 3.367 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.3227, allocations: 139 kB / 436.1 MB, free: 3.23 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004738/0.3231, allocations: 459.7 kB / 436.6 MB, free: 2.785 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3231, allocations: 0 / 436.6 MB, free: 2.785 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.472e-06/0.3231, allocations: 0 / 436.6 MB, free: 2.785 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.843e-06/0.3231, allocations: 0 / 436.6 MB, free: 2.785 MB / 334.1 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.0008907/0.324, allocations: 0.7463 MB / 437.3 MB, free: 1.977 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.3241, allocations: 8.031 kB / 437.3 MB, free: 1.969 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.588e-05/0.3242, allocations: 48.66 kB / 437.4 MB, free: 1.922 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.3245, allocations: 240.8 kB / 437.6 MB, free: 1.66 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.3245, allocations: 8.375 kB / 437.6 MB, free: 1.652 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.62e-05/0.3246, allocations: 8.375 kB / 437.6 MB, free: 1.645 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003514/0.3249, allocations: 173.8 kB / 437.8 MB, free: 1.469 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.3249, allocations: 0 / 437.8 MB, free: 1.469 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/0.3249, allocations: 8 kB / 437.8 MB, free: 1.461 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3249, allocations: 0 / 437.8 MB, free: 1.461 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.3251, allocations: 83.95 kB / 437.9 MB, free: 1.379 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008012/0.3259, allocations: 479.5 kB / 438.4 MB, free: 0.8672 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.3261, allocations: 102.5 kB / 438.5 MB, free: 0.7578 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.3263, allocations: 84.88 kB / 438.5 MB, free: 0.6719 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.3263, allocations: 4 kB / 438.5 MB, free: 0.668 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/0.3268, allocations: 246.5 kB / 438.8 MB, free: 412 kB / 334.1 MB
Notification: Performance of pre-optimization done (n=14): time 3.155e-06/0.3268, allocations: 8.094 kB / 438.8 MB, free: 404 kB / 334.1 MB
Notification: Performance of matching and sorting (n=14): time 0.001007/0.3278, allocations: 0.6065 MB / 439.4 MB, free: 15.75 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.3279, allocations: 195.9 kB / 439.6 MB, free: 15.52 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007329/0.3286, allocations: 0.5679 MB / 440.2 MB, free: 14.94 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.3287, allocations: 33.69 kB / 440.2 MB, free: 14.9 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.3288, allocations: 113.1 kB / 440.3 MB, free: 14.79 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.911e-05/0.3288, allocations: 35.73 kB / 440.3 MB, free: 14.75 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.329, allocations: 101.5 kB / 440.4 MB, free: 14.64 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001583/0.3291, allocations: 334.8 kB / 440.8 MB, free: 14.31 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.3293, allocations: 79.95 kB / 440.8 MB, free: 14.23 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.3295, allocations: 97.67 kB / 440.9 MB, free: 14.13 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000466/0.33, allocations: 429.6 kB / 441.4 MB, free: 13.64 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.33, allocations: 0 / 441.4 MB, free: 13.64 MB / 350.1 MB
Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007007/0.3307, allocations: 0.5019 MB / 441.9 MB, free: 13.11 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.000177/0.3308, allocations: 152.5 kB / 442 MB, free: 12.93 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3308, allocations: 8.031 kB / 442 MB, free: 12.92 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3309, allocations: 0 / 442 MB, free: 12.92 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.748e-05/0.3309, allocations: 0 / 442 MB, free: 12.92 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3309, allocations: 0 / 442 MB, free: 12.92 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.331, allocations: 15.98 kB / 442 MB, free: 12.9 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.3311, allocations: 97.19 kB / 442.1 MB, free: 12.81 MB / 350.1 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.0004/0.3315, allocations: 404.1 kB / 442.5 MB, free: 12.38 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.19e-05/0.3316, allocations: 47.72 kB / 442.6 MB, free: 12.33 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.3317, allocations: 75.41 kB / 442.6 MB, free: 12.26 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.3317, allocations: 0 / 442.6 MB, free: 12.26 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3317, allocations: 0 / 442.6 MB, free: 12.26 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.3317, allocations: 0 / 442.6 MB, free: 12.26 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.3329, allocations: 0.9352 MB / 443.6 MB, free: 11.24 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3329, allocations: 0 / 443.6 MB, free: 11.24 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.402e-06/0.3329, allocations: 3.938 kB / 443.6 MB, free: 11.24 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3329, allocations: 0 / 443.6 MB, free: 11.24 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.802e-05/0.333, allocations: 23.98 kB / 443.6 MB, free: 11.21 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.333, allocations: 0 / 443.6 MB, free: 11.21 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.333, allocations: 3.938 kB / 443.6 MB, free: 11.21 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008563/0.3338, allocations: 0.6637 MB / 444.3 MB, free: 10.5 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.000413/0.3343, allocations: 213.3 kB / 444.5 MB, free: 10.29 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.464e-05/0.3343, allocations: 12 kB / 444.5 MB, free: 10.28 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.3345, allocations: 15.98 kB / 444.5 MB, free: 10.27 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.3346, allocations: 59.81 kB / 444.6 MB, free: 10.21 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.3348, allocations: 109.2 kB / 444.7 MB, free: 10.1 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0005627/0.3353, allocations: 422.8 kB / 445.1 MB, free: 9.695 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7.1e-08/0.3353, allocations: 0 / 445.1 MB, free: 9.695 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003037/0.3356, allocations: 48 kB / 445.1 MB, free: 9.648 MB / 350.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: 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.0001652/0.3358, allocations: 119.1 kB / 445.2 MB, free: 9.523 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006334/0.3364, allocations: 480.9 kB / 445.7 MB, free: 8.992 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3364, allocations: 0 / 445.7 MB, free: 8.992 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003937/0.3368, allocations: 384.9 kB / 446.1 MB, free: 8.555 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/0.3376, allocations: 190.5 kB / 446.3 MB, free: 8.379 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.339, allocations: 0.7598 MB / 447 MB, free: 7.594 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006271/0.3396, allocations: 0.8182 MB / 447.9 MB, free: 6.75 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 7.559e-05/0.3397, allocations: 16.94 kB / 447.9 MB, free: 6.73 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.876e-05/0.3397, allocations: 15.44 kB / 447.9 MB, free: 6.715 MB / 350.1 MB
Notification: Performance of SimCode: time 3.11e-07/0.3397, allocations: 4 kB / 447.9 MB, free: 6.711 MB / 350.1 MB
Notification: Performance of Templates: time 0.01323/0.353, allocations: 7.478 MB / 455.4 MB, free: 15.12 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.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: 4.717247839085758]