Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.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.001696/0.001696, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001942/0.001942, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.513/1.513, allocations: 230.6 MB / 257.5 MB, free: 8.008 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+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(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 43.92 kB / 378.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2966, allocations: 53.36 MB / 431.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.004204/0.3008, allocations: 1.58 MB / 433.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003147/0.3039, allocations: 0.916 MB / 434.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.237e-05/0.304, allocations: 0 / 434.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.3041, allocations: 15.86 kB / 434.1 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.3042, allocations: 23.8 kB / 434.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.3046, allocations: 55.86 kB / 434.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003458/0.305, allocations: 155.7 kB / 434.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.3051, allocations: 21.58 kB / 434.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001068/0.3061, allocations: 0.6395 MB / 435 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.3064, allocations: 87.61 kB / 435.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.065e-05/0.3064, allocations: 8 kB / 435.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.744e-05/0.3065, allocations: 12 kB / 435.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.3066, allocations: 79.69 kB / 435.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001881/0.3068, allocations: 131 kB / 435.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006448/0.3074, allocations: 463.3 kB / 435.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3074, allocations: 0 / 435.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3074, allocations: 3.938 kB / 435.8 MB, free: 2.742 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.3075, allocations: 0 / 435.8 MB, free: 2.742 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.00123/0.3087, allocations: 0.7502 MB / 436.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.3087, allocations: 8.031 kB / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.3089, allocations: 48.66 kB / 436.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.3094, allocations: 244.7 kB / 436.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.289e-05/0.3094, allocations: 8.375 kB / 436.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.3095, allocations: 8.375 kB / 436.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005225/0.31, allocations: 171.6 kB / 437 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.31, allocations: 0 / 437 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.14e-05/0.31, allocations: 11.98 kB / 437 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.3101, allocations: 4 kB / 437 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002482/0.3103, allocations: 83.95 kB / 437.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.3114, allocations: 471.5 kB / 437.6 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000302/0.3117, allocations: 94.53 kB / 437.7 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/0.312, allocations: 84.88 kB / 437.8 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.312, allocations: 4 kB / 437.8 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006471/0.3127, allocations: 242.6 kB / 438 MB, free: 376 kB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.3127, allocations: 112 / 438 MB, free: 376 kB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.00137/0.314, allocations: 0.6149 MB / 438.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.3142, allocations: 191.9 kB / 438.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009826/0.3152, allocations: 0.5679 MB / 439.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.3152, allocations: 29.7 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.3153, allocations: 121.1 kB / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.569e-05/0.3154, allocations: 31.78 kB / 439.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/0.3156, allocations: 97.5 kB / 439.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.3158, allocations: 330.8 kB / 440 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.316, allocations: 79.95 kB / 440 MB, free: 14.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.3163, allocations: 97.67 kB / 440.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006845/0.317, allocations: 433.2 kB / 440.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.317, allocations: 4 kB / 440.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001135/0.3181, allocations: 0.5019 MB / 441.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001607/0.3183, allocations: 152.5 kB / 441.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3183, allocations: 0 / 441.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.3183, allocations: 0 / 441.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.597e-05/0.3183, allocations: 0 / 441.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.3183, allocations: 4 kB / 441.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.3186, allocations: 11.98 kB / 441.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/0.3188, allocations: 101.3 kB / 441.3 MB, free: 12.78 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.0006158/0.3194, allocations: 415.9 kB / 441.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.3195, allocations: 47.72 kB / 441.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.3196, allocations: 71.41 kB / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3196, allocations: 0 / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3196, allocations: 0 / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.3196, allocations: 0 / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001822/0.3214, allocations: 0.9352 MB / 442.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.3214, allocations: 0 / 442.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.58e-06/0.3214, allocations: 0 / 442.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3214, allocations: 4 kB / 442.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.058e-05/0.3215, allocations: 23.98 kB / 442.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3215, allocations: 0 / 442.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.3215, allocations: 7.875 kB / 442.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.3225, allocations: 0.662 MB / 443.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006604/0.3232, allocations: 217.3 kB / 443.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.955e-05/0.3233, allocations: 12 kB / 443.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.3236, allocations: 19.98 kB / 443.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.3237, allocations: 59.88 kB / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/0.3239, allocations: 105.2 kB / 443.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008399/0.3248, allocations: 414.9 kB / 444.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3248, allocations: 0 / 444.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005486/0.3253, allocations: 52 kB / 444.3 MB, free: 9.609 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.000211/0.3255, allocations: 115.2 kB / 444.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009286/0.3264, allocations: 481 kB / 444.9 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3264, allocations: 0 / 444.9 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005649/0.327, allocations: 392.9 kB / 445.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009874/0.328, allocations: 189.7 kB / 445.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.3293, allocations: 0.7634 MB / 446.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000576/0.3299, allocations: 0.8222 MB / 447.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.738e-05/0.3299, allocations: 12.97 kB / 447.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.898e-05/0.33, allocations: 15.44 kB / 447.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.33, allocations: 0 / 447.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of Templates: time 0.01268/0.3426, allocations: 7.482 MB / 454.6 MB, free: 15.08 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.788480140967295]