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.001309/0.001309, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001372/0.001372, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 8.035 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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00253/0.00253, allocations: 51.91 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3009, allocations: 53.36 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002874/0.3037, allocations: 1.583 MB / 432.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.3058, allocations: 0.916 MB / 433.6 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.789e-05/0.3059, allocations: 4 kB / 433.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.274e-05/0.306, allocations: 11.86 kB / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.3061, allocations: 23.84 kB / 433.7 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.3063, allocations: 47.89 kB / 433.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002694/0.3066, allocations: 167.6 kB / 433.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.3067, allocations: 21.58 kB / 433.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007414/0.3074, allocations: 0.6317 MB / 434.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.3076, allocations: 87.62 kB / 434.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.143e-05/0.3077, allocations: 12 kB / 434.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.824e-05/0.3077, allocations: 12 kB / 434.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.379e-05/0.3078, allocations: 71.7 kB / 434.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.308, allocations: 143 kB / 434.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.3085, allocations: 454.5 kB / 435.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.3085, allocations: 0 / 435.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3085, allocations: 0 / 435.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.3085, allocations: 4 kB / 435.3 MB, free: 2.676 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.0009754/0.3094, allocations: 0.7502 MB / 436 MB, free: 1.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3095, allocations: 12.03 kB / 436.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.213e-05/0.3096, allocations: 42.73 kB / 436.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.989e-05/0.3097, allocations: 52.59 kB / 436.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.31, allocations: 236.8 kB / 436.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.31, allocations: 4.375 kB / 436.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.913e-05/0.3101, allocations: 16.31 kB / 436.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003728/0.3104, allocations: 165.7 kB / 436.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3105, allocations: 0 / 436.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.3105, allocations: 7.984 kB / 436.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3105, allocations: 0 / 436.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.3107, allocations: 87.95 kB / 436.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008569/0.3115, allocations: 479.5 kB / 437.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.3117, allocations: 94.53 kB / 437.2 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.3119, allocations: 84.88 kB / 437.3 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.3119, allocations: 4 kB / 437.3 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004487/0.3124, allocations: 252.2 kB / 437.6 MB, free: 244 kB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.794e-06/0.3124, allocations: 0 / 437.6 MB, free: 244 kB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001029/0.3134, allocations: 0.6072 MB / 438.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.3135, allocations: 191.9 kB / 438.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007684/0.3143, allocations: 0.564 MB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.3143, allocations: 33.7 kB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.9e-05/0.3144, allocations: 113.1 kB / 439.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.175e-05/0.3145, allocations: 39.78 kB / 439.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.3146, allocations: 101.5 kB / 439.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3148, allocations: 330.8 kB / 439.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.315, allocations: 79.95 kB / 439.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.3151, allocations: 93.81 kB / 439.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004504/0.3156, allocations: 445.4 kB / 440.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3156, allocations: 4 kB / 440.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007434/0.3163, allocations: 0.4941 MB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000114/0.3164, allocations: 148.5 kB / 440.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3164, allocations: 64 / 440.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3165, allocations: 4 kB / 440.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.067e-05/0.3165, allocations: 3.938 kB / 440.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.3165, allocations: 7.984 kB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.3166, allocations: 12 kB / 440.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.3168, allocations: 101.2 kB / 440.9 MB, free: 12.64 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.0004189/0.3172, allocations: 404.1 kB / 441.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.205e-05/0.3173, allocations: 51.7 kB / 441.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.3174, allocations: 67.42 kB / 441.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3174, allocations: 0 / 441.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3174, allocations: 3.938 kB / 441.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3174, allocations: 0 / 441.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.3186, allocations: 0.9429 MB / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3186, allocations: 0 / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.531e-06/0.3186, allocations: 0 / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3186, allocations: 4 kB / 442.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.78e-05/0.3187, allocations: 19.98 kB / 442.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.3187, allocations: 3.938 kB / 442.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.3187, allocations: 3.984 kB / 442.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008585/0.3195, allocations: 0.6631 MB / 443 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004489/0.32, allocations: 209.3 kB / 443.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.604e-05/0.3201, allocations: 12 kB / 443.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.3202, allocations: 19.92 kB / 443.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.3204, allocations: 55.94 kB / 443.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.3205, allocations: 105.2 kB / 443.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005657/0.3211, allocations: 426.8 kB / 443.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3211, allocations: 0 / 443.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003314/0.3214, allocations: 48 kB / 443.9 MB, free: 9.484 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.001291/0.3227, allocations: 1.228 MB / 445.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006274/0.3233, allocations: 480.8 kB / 445.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3233, allocations: 0 / 445.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003969/0.3237, allocations: 381 kB / 446 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008274/0.3245, allocations: 195.1 kB / 446.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004579/0.3291, allocations: 3.23 MB / 449.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005879/0.3297, allocations: 0.822 MB / 450.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.3298, allocations: 12.95 kB / 450.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.3299, allocations: 47.42 kB / 450.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3299, allocations: 0 / 450.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04294/0.3728, allocations: 9.417 MB / 459.7 MB, free: 9.383 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.29, allocations: 11.09 kB / 459.7 MB, free: 9.379 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/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: 13.887803226942196]