Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008954/0.0008954, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9391/0.9391, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.106e-06/3.106e-06, allocations: 4 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.734e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001882/0.001909, allocations: 1.509 MB / 319.9 MB, free: 4.832 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.00339, allocations: 0.8147 MB / 320.8 MB, free: 4.012 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.074e-05/0.00345, allocations: 0 / 320.8 MB, free: 4.012 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.00356, allocations: 11.86 kB / 320.8 MB, free: 4 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.834e-05/0.003649, allocations: 27.86 kB / 320.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002945/0.003943, allocations: 59.81 kB / 320.9 MB, free: 3.914 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002109/0.004154, allocations: 167.5 kB / 321 MB, free: 3.75 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.004263, allocations: 17.58 kB / 321 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000528/0.004791, allocations: 0.659 MB / 321.7 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.004911, allocations: 79.72 kB / 321.8 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.392e-05/0.004955, allocations: 12 kB / 321.8 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.76e-05/0.004983, allocations: 8 kB / 321.8 MB, free: 2.969 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.915e-05/0.005062, allocations: 75.72 kB / 321.9 MB, free: 2.895 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.567e-05/0.005137, allocations: 71.67 kB / 321.9 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.005466, allocations: 458.5 kB / 322.4 MB, free: 2.375 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.005469, allocations: 0 / 322.4 MB, free: 2.375 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.005471, allocations: 0 / 322.4 MB, free: 2.375 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.005477, allocations: 0 / 322.4 MB, free: 2.375 MB / 282.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.0006207/0.006098, allocations: 0.7495 MB / 323.1 MB, free: 1.566 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.006138, allocations: 8.922 kB / 323.1 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.163e-05/0.00618, allocations: 42.73 kB / 323.2 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.546e-05/0.006235, allocations: 48.66 kB / 323.2 MB, free: 1.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.006453, allocations: 236 kB / 323.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.00647, allocations: 4.375 kB / 323.5 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/0.006493, allocations: 24.31 kB / 323.5 MB, free: 1.176 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.006806, allocations: 306.6 kB / 323.8 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.006814, allocations: 192 / 323.8 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.006834, allocations: 12.12 kB / 323.8 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.006838, allocations: 4 kB / 323.8 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.00701, allocations: 232.4 kB / 324 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005375/0.007548, allocations: 459.6 kB / 324.5 MB, free: 76 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.007772, allocations: 251 kB / 324.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.007932, allocations: 229.4 kB / 324.9 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.007945, allocations: 8 kB / 325 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004018/0.008347, allocations: 390.9 kB / 325.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.894e-06/0.008349, allocations: 0 / 325.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.001026/0.009374, allocations: 0.9206 MB / 326.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.341e-05/0.009448, allocations: 195.9 kB / 326.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005326/0.00998, allocations: 0.5601 MB / 327 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.01, allocations: 33.7 kB / 327 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.27e-05/0.01007, allocations: 113.1 kB / 327.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.499e-05/0.0101, allocations: 35.78 kB / 327.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.345e-05/0.0102, allocations: 93.55 kB / 327.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.967e-05/0.01029, allocations: 334.8 kB / 327.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.01044, allocations: 232.5 kB / 327.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.0106, allocations: 250.1 kB / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.01087, allocations: 446.6 kB / 328.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.01088, allocations: 0 / 328.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006424/0.01152, allocations: 0.6664 MB / 329.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.006e-05/0.01161, allocations: 148.5 kB / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.01161, allocations: 0 / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.01163, allocations: 0 / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.337e-05/0.01165, allocations: 12.12 kB / 329.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.01166, allocations: 3.938 kB / 329.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.01178, allocations: 16 kB / 329.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.806e-05/0.01186, allocations: 97.48 kB / 329.5 MB, free: 10.56 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.0002681/0.01213, allocations: 400.3 kB / 329.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.156e-05/0.01217, allocations: 47.72 kB / 329.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.521e-05/0.01224, allocations: 71.41 kB / 330 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.01225, allocations: 0 / 330 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.01225, allocations: 4.062 kB / 330 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.01226, allocations: 0 / 330 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008206/0.01308, allocations: 1.072 MB / 331 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.01308, allocations: 7.922 kB / 331 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.542e-06/0.01309, allocations: 0 / 331 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.01309, allocations: 0 / 331 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.01312, allocations: 23.97 kB / 331.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.01312, allocations: 0 / 331.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.01312, allocations: 4 kB / 331.1 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005733/0.01369, allocations: 0.8203 MB / 331.9 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005519/0.01425, allocations: 229.2 kB / 332.1 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.737e-05/0.01429, allocations: 12 kB / 332.1 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.0144, allocations: 19.98 kB / 332.1 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.01455, allocations: 51.94 kB / 332.2 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.79e-05/0.01462, allocations: 105.4 kB / 332.3 MB, free: 7.484 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003683/0.01499, allocations: 422.8 kB / 332.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.01499, allocations: 0 / 332.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002475/0.01524, allocations: 48 kB / 332.8 MB, free: 7.027 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.001002/0.01624, allocations: 1.369 MB / 334.1 MB, free: 5.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005875/0.01683, allocations: 0.7635 MB / 334.9 MB, free: 4.684 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.01683, allocations: 4.062 kB / 334.9 MB, free: 4.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002998/0.01713, allocations: 0.5249 MB / 335.4 MB, free: 4.062 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005424/0.01768, allocations: 194.2 kB / 335.6 MB, free: 3.887 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003463/0.02114, allocations: 3.983 MB / 339.6 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/0.02133, allocations: 215.9 kB / 339.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.229e-05/0.02141, allocations: 16.91 kB / 339.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.92e-05/0.02147, allocations: 48.48 kB / 339.9 MB, free: 15.33 MB / 314.7 MB Notification: Performance of SimCode: time 1.502e-06/0.02147, allocations: 3.938 kB / 339.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.04613, allocations: 10.55 MB / 350.4 MB, free: 4.793 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.897/6.943, allocations: 11.14 kB / 350.4 MB, free: 4.785 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.718696386553347]