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.001237/0.001237, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001347/0.001347, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.442/1.442, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001652/0.001652, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1093, allocations: 53.33 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002886/0.1122, allocations: 1.584 MB / 427.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.1143, allocations: 0.8926 MB / 428.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.319e-05/0.1143, allocations: 4 kB / 428.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.938e-05/0.1144, allocations: 11.86 kB / 428.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.1145, allocations: 31.78 kB / 428.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.1148, allocations: 47.89 kB / 428.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002454/0.115, allocations: 155.7 kB / 429 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.1151, allocations: 21.38 kB / 429.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006971/0.1158, allocations: 0.6356 MB / 429.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.116, allocations: 87.62 kB / 429.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.419e-05/0.116, allocations: 15.94 kB / 429.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.534e-05/0.1161, allocations: 12 kB / 429.8 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.924e-05/0.1162, allocations: 75.69 kB / 429.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.1163, allocations: 139 kB / 430 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004431/0.1167, allocations: 454.1 kB / 430.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1167, allocations: 0 / 430.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1167, allocations: 0 / 430.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1167, allocations: 0 / 430.5 MB, free: 0.6055 MB / 350.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.1906/0.3073, allocations: 0.825 MB / 431.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3074, allocations: 9.031 kB / 431.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.447e-05/0.3074, allocations: 39.94 kB / 431.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.312e-05/0.3075, allocations: 46.41 kB / 431.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.3078, allocations: 299.8 kB / 431.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.3078, allocations: 11 kB / 431.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.3078, allocations: 8.469 kB / 431.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/0.3082, allocations: 167.7 kB / 431.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.3082, allocations: 3.938 kB / 431.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.3082, allocations: 8.234 kB / 431.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3082, allocations: 2.531 kB / 431.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.3084, allocations: 84.58 kB / 431.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006578/0.3091, allocations: 0.4992 MB / 432.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.3093, allocations: 100.5 kB / 432.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.3095, allocations: 88.98 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.3095, allocations: 0.8125 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003732/0.3098, allocations: 248.8 kB / 432.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.3098, allocations: 0 / 432.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000887/0.3107, allocations: 0.6157 MB / 433.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.3108, allocations: 193.2 kB / 433.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000567/0.3114, allocations: 0.5623 MB / 434.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.3114, allocations: 30.73 kB / 434.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.528e-05/0.3114, allocations: 116.4 kB / 434.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.005e-05/0.3115, allocations: 40.5 kB / 434.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.3116, allocations: 96.78 kB / 434.5 MB, free: 9.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.084e-05/0.3117, allocations: 332.5 kB / 434.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.3118, allocations: 85.86 kB / 434.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.312, allocations: 104.3 kB / 435 MB, free: 9.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.3123, allocations: 430.4 kB / 435.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3123, allocations: 1.812 kB / 435.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006538/0.3129, allocations: 0.5037 MB / 436 MB, free: 8.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.702e-05/0.313, allocations: 152.8 kB / 436.1 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.313, allocations: 2.125 kB / 436.1 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.313, allocations: 1.281 kB / 436.1 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.952e-05/0.3131, allocations: 3.25 kB / 436.1 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.3131, allocations: 0 / 436.1 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001538/0.3132, allocations: 18.42 kB / 436.1 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.3133, allocations: 92.95 kB / 436.2 MB, free: 8.516 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.0003012/0.3136, allocations: 415.7 kB / 436.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.899e-05/0.3137, allocations: 48.98 kB / 436.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.271e-05/0.3138, allocations: 68.73 kB / 436.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.3138, allocations: 0 / 436.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3138, allocations: 1.906 kB / 436.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3138, allocations: 0.5625 kB / 436.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3148, allocations: 0.958 MB / 437.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3148, allocations: 1.016 kB / 437.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-06/0.3148, allocations: 2.969 kB / 437.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3148, allocations: 0.75 kB / 437.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.108e-05/0.3149, allocations: 23.91 kB / 437.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.3149, allocations: 1.781 kB / 437.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3149, allocations: 7.406 kB / 437.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007464/0.3156, allocations: 0.6597 MB / 438.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.3159, allocations: 261.5 kB / 438.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.825e-05/0.316, allocations: 12.78 kB / 438.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.3161, allocations: 14.45 kB / 438.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.3163, allocations: 57.53 kB / 438.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.3164, allocations: 105.6 kB / 438.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005088/0.3169, allocations: 424.9 kB / 439.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3169, allocations: 1.094 kB / 439.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003238/0.3172, allocations: 51.19 kB / 439.3 MB, free: 6.715 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.0009528/0.3182, allocations: 1.225 MB / 440.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005006/0.3187, allocations: 481.8 kB / 441 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3187, allocations: 0 / 441 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.319, allocations: 383.4 kB / 441.4 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008228/0.3198, allocations: 202.2 kB / 441.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003729/0.3235, allocations: 3.228 MB / 444.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.3238, allocations: 0.8171 MB / 445.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.59e-05/0.3239, allocations: 19.91 kB / 445.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.713e-05/0.324, allocations: 48.75 kB / 445.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.324, allocations: 0 / 445.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03644/0.3604, allocations: 9.238 MB / 454.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.143/8.503, allocations: 14.95 kB / 454.9 MB, free: 15.69 MB / 366.1 MB " [Timeout remaining time 651] (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: 10.91948601580225]