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.0008094/0.0008094, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009331/0.0009331, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.858/0.858, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.273e-06/1.273e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.278e-05/1.406e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001828/0.001842, allocations: 1.53 MB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.003115, allocations: 0.8498 MB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.292e-05/0.003167, allocations: 3.938 kB / 327 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.78e-05/0.003245, allocations: 7.938 kB / 327 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.362e-05/0.003319, allocations: 31.72 kB / 327 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.003553, allocations: 59.81 kB / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.003718, allocations: 163.7 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.619e-05/0.003805, allocations: 13.59 kB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004538/0.004258, allocations: 0.6629 MB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.004368, allocations: 75.73 kB / 328 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.0044, allocations: 12 kB / 328 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.553e-05/0.004426, allocations: 12 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.223e-05/0.004498, allocations: 79.7 kB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.899e-05/0.004567, allocations: 63.67 kB / 328.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005426/0.00511, allocations: 454.5 kB / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.005112, allocations: 0 / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.005113, allocations: 0 / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.005118, allocations: 4 kB / 328.6 MB, free: 11.92 MB / 298.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.0007571/0.005875, allocations: 0.7534 MB / 329.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.005918, allocations: 12.03 kB / 329.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.083e-05/0.005958, allocations: 38.75 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.507e-05/0.006024, allocations: 44.66 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.006263, allocations: 240 kB / 329.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.006282, allocations: 8.375 kB / 329.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.006305, allocations: 8.375 kB / 329.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.006621, allocations: 324.9 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.006629, allocations: 192 / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.006649, allocations: 8.125 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.006654, allocations: 0 / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001594/0.006814, allocations: 236.5 kB / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005677/0.007381, allocations: 463.5 kB / 330.7 MB, free: 9.609 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.00759, allocations: 243 kB / 330.9 MB, free: 9.332 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.007739, allocations: 233.4 kB / 331.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.007748, allocations: 0 / 331.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003346/0.008082, allocations: 404.1 kB / 331.5 MB, free: 8.621 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.008083, allocations: 0 / 331.5 MB, free: 8.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007605/0.008844, allocations: 0.9128 MB / 332.4 MB, free: 7.609 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.516e-05/0.008919, allocations: 195.9 kB / 332.6 MB, free: 7.375 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004858/0.009405, allocations: 0.5679 MB / 333.2 MB, free: 6.805 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.009432, allocations: 29.7 kB / 333.2 MB, free: 6.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.736e-05/0.009499, allocations: 117.1 kB / 333.4 MB, free: 6.648 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.4e-05/0.009533, allocations: 35.8 kB / 333.4 MB, free: 6.613 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.496e-05/0.009628, allocations: 97.48 kB / 333.5 MB, free: 6.512 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.789e-05/0.009716, allocations: 338.8 kB / 333.8 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.009864, allocations: 228.5 kB / 334 MB, free: 5.918 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.01001, allocations: 246.2 kB / 334.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003479/0.01036, allocations: 454.6 kB / 334.7 MB, free: 5.129 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.01036, allocations: 4 kB / 334.7 MB, free: 5.125 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004793/0.01084, allocations: 0.6498 MB / 335.4 MB, free: 4.406 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.114e-05/0.01091, allocations: 160.4 kB / 335.5 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.01092, allocations: 0 / 335.5 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.01093, allocations: 4 kB / 335.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.043e-05/0.01095, allocations: 3.938 kB / 335.5 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.01096, allocations: 0 / 335.5 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.01106, allocations: 15.98 kB / 335.6 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.551e-05/0.01113, allocations: 93.48 kB / 335.6 MB, free: 4.102 MB / 298.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.000261/0.0114, allocations: 408.3 kB / 336 MB, free: 3.664 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.01143, allocations: 47.77 kB / 336.1 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.344e-05/0.01151, allocations: 71.42 kB / 336.2 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.01151, allocations: 0 / 336.2 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.01151, allocations: 0 / 336.2 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.01152, allocations: 7.938 kB / 336.2 MB, free: 3.539 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007632/0.01228, allocations: 1.068 MB / 337.2 MB, free: 2.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.01228, allocations: 0 / 337.2 MB, free: 2.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.823e-06/0.01229, allocations: 4 kB / 337.2 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.01229, allocations: 0 / 337.2 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.01231, allocations: 23.98 kB / 337.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.01232, allocations: 4 kB / 337.3 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01232, allocations: 0 / 337.3 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005226/0.01284, allocations: 0.8279 MB / 338.1 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002433/0.01308, allocations: 213.3 kB / 338.3 MB, free: 1.219 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.316e-05/0.01313, allocations: 12 kB / 338.3 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.288e-05/0.01321, allocations: 8 kB / 338.3 MB, free: 1.199 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.01332, allocations: 59.92 kB / 338.4 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.116e-05/0.01338, allocations: 105.4 kB / 338.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003155/0.01369, allocations: 426.8 kB / 338.9 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.01369, allocations: 0 / 338.9 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002038/0.0139, allocations: 59.94 kB / 339 MB, free: 0.5703 MB / 298.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.0007407/0.01464, allocations: 1.369 MB / 340.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004899/0.01513, allocations: 0.7674 MB / 341.1 MB, free: 14.22 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.01513, allocations: 0 / 341.1 MB, free: 14.22 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003421/0.01547, allocations: 0.5249 MB / 341.6 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004756/0.01595, allocations: 180.8 kB / 341.8 MB, free: 13.44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003407/0.01935, allocations: 4.006 MB / 345.8 MB, free: 9.156 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.01954, allocations: 207.9 kB / 346 MB, free: 8.93 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.125e-05/0.01962, allocations: 20.94 kB / 346 MB, free: 8.906 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.168e-05/0.01967, allocations: 40.48 kB / 346.1 MB, free: 8.867 MB / 314.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01967, allocations: 0 / 346.1 MB, free: 8.867 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.04174, allocations: 10.56 MB / 356.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.764/6.806, allocations: 15.17 kB / 356.6 MB, free: 14.33 MB / 330.7 MB " [Timeout remaining time 653] (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/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: 8.428773380815983]