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.001639/0.001639, allocations: 119.9 kB / 17.79 MB, free: 5.285 MB / 14.72 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.001632/0.001632, allocations: 185.2 kB / 20.73 MB, free: 2.355 MB / 14.72 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 1.407/1.407, allocations: 225.6 MB / 249.1 MB, free: 3.59 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001502/0.001502, allocations: 51.92 kB / 365.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09716/0.09866, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002858/0.1015, allocations: 1.577 MB / 419.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.1036, allocations: 0.8615 MB / 420.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.989e-05/0.1036, allocations: 0 / 420.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.974e-05/0.1037, allocations: 19.86 kB / 420.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.193e-05/0.1038, allocations: 23.84 kB / 420.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.1041, allocations: 51.89 kB / 420.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002476/0.1043, allocations: 155.6 kB / 420.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1044, allocations: 25.38 kB / 420.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007453/0.1051, allocations: 0.6356 MB / 421.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.1053, allocations: 79.62 kB / 421.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.384e-05/0.1053, allocations: 12 kB / 421.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.5e-05/0.1054, allocations: 12 kB / 421.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1055, allocations: 83.69 kB / 421.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.1056, allocations: 131 kB / 421.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000528/0.1062, allocations: 458 kB / 421.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1062, allocations: 0 / 421.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1062, allocations: 0 / 421.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.1062, allocations: 4 kB / 421.9 MB, free: 8.461 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.0009447/0.1071, allocations: 0.8255 MB / 422.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1072, allocations: 8.031 kB / 422.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.011e-05/0.1072, allocations: 46.73 kB / 422.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.684e-05/0.1073, allocations: 44.66 kB / 422.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.1077, allocations: 294.6 kB / 423.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.1077, allocations: 8.375 kB / 423.1 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.1077, allocations: 16.25 kB / 423.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003678/0.1081, allocations: 179.9 kB / 423.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.1081, allocations: 0 / 423.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.1081, allocations: 4 kB / 423.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.1081, allocations: 0 / 423.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.1083, allocations: 83.95 kB / 423.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009843/0.1093, allocations: 0.5004 MB / 423.9 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.1095, allocations: 94.53 kB / 424 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.1097, allocations: 84.88 kB / 424.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.141e-06/0.1097, allocations: 0 / 424.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004269/0.1101, allocations: 246.6 kB / 424.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.1101, allocations: 4 kB / 424.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001021/0.1111, allocations: 0.6189 MB / 424.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/0.1113, allocations: 195.9 kB / 425.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000821/0.1121, allocations: 0.5601 MB / 425.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.368e-05/0.1122, allocations: 41.64 kB / 425.7 MB, free: 4.309 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.532e-05/0.1123, allocations: 113.1 kB / 425.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.616e-05/0.1123, allocations: 31.94 kB / 425.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.1125, allocations: 97.55 kB / 425.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1126, allocations: 334.8 kB / 426.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.1128, allocations: 87.91 kB / 426.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.113, allocations: 97.66 kB / 426.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/0.1135, allocations: 440.7 kB / 426.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1135, allocations: 0 / 426.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00075/0.1142, allocations: 0.498 MB / 427.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.1143, allocations: 152.5 kB / 427.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.1144, allocations: 4.031 kB / 427.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1144, allocations: 0 / 427.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.228e-05/0.1144, allocations: 11.92 kB / 427.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.1144, allocations: 0 / 427.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.1146, allocations: 15.98 kB / 427.6 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.1147, allocations: 101.3 kB / 427.7 MB, free: 2.199 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.0005414/0.1152, allocations: 404.1 kB / 428.1 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.107e-05/0.1153, allocations: 43.72 kB / 428.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001168/0.1154, allocations: 79.45 kB / 428.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1154, allocations: 0 / 428.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1154, allocations: 4 kB / 428.2 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1154, allocations: 0 / 428.2 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.1168, allocations: 0.9583 MB / 429.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1168, allocations: 0 / 429.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-06/0.1168, allocations: 0 / 429.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.1168, allocations: 4 kB / 429.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.642e-05/0.1168, allocations: 15.98 kB / 429.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1168, allocations: 7.875 kB / 429.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1168, allocations: 8 kB / 429.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00091/0.1177, allocations: 0.6676 MB / 429.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004418/0.1182, allocations: 252.6 kB / 430.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-05/0.1182, allocations: 12 kB / 430.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.1184, allocations: 15.92 kB / 430.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.1186, allocations: 51.94 kB / 430.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.1187, allocations: 93.3 kB / 430.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005836/0.1192, allocations: 434.8 kB / 430.7 MB, free: 15 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1192, allocations: 0 / 430.7 MB, free: 15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003328/0.1196, allocations: 51.94 kB / 430.7 MB, free: 14.95 MB / 366.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.001219/0.1208, allocations: 1.216 MB / 432 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006247/0.1214, allocations: 488.8 kB / 432.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1214, allocations: 0 / 432.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003842/0.1218, allocations: 385 kB / 432.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008125/0.1226, allocations: 192.1 kB / 433 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004376/0.127, allocations: 3.257 MB / 436.2 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.1275, allocations: 0.826 MB / 437.1 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.557e-05/0.1276, allocations: 16.86 kB / 437.1 MB, free: 8.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.409e-05/0.1277, allocations: 43.42 kB / 437.1 MB, free: 8.23 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1277, allocations: 0 / 437.1 MB, free: 8.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2083/0.336, allocations: 9.227 MB / 446.4 MB, free: 31.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.387, allocations: 2.219 kB / 446.4 MB, free: 31.35 MB / 366.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.715063383802772]