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.001416/0.001416, allocations: 116 kB / 17.78 MB, free: 5.289 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.001315/0.001315, allocations: 190.9 kB / 20.73 MB, free: 2.352 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.422/1.422, allocations: 225.6 MB / 249.1 MB, free: 3.629 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.001532/0.001532, allocations: 59.91 kB / 365.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1052, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003137/0.1083, allocations: 1.573 MB / 419.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.1102, allocations: 0.8614 MB / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.715e-05/0.1103, allocations: 8 kB / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.294e-05/0.1104, allocations: 11.86 kB / 420.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.399e-05/0.1104, allocations: 27.84 kB / 420.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.1107, allocations: 51.88 kB / 420.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.1109, allocations: 159.6 kB / 420.5 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.111, allocations: 17.39 kB / 420.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000684/0.1117, allocations: 0.6317 MB / 421.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.1119, allocations: 91.61 kB / 421.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.1119, allocations: 12 kB / 421.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.799e-05/0.1119, allocations: 16 kB / 421.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.608e-05/0.112, allocations: 71.7 kB / 421.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.1122, allocations: 139 kB / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004687/0.1127, allocations: 454 kB / 421.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.1127, allocations: 0 / 421.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1127, allocations: 0 / 421.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1127, allocations: 0 / 421.9 MB, free: 8.527 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.0009243/0.1136, allocations: 0.8255 MB / 422.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.1136, allocations: 12.03 kB / 422.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.172e-05/0.1137, allocations: 46.73 kB / 422.8 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.999e-05/0.1138, allocations: 48.66 kB / 422.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.1141, allocations: 290.6 kB / 423.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.1141, allocations: 4.375 kB / 423.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.1142, allocations: 16.25 kB / 423.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003636/0.1145, allocations: 177.6 kB / 423.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1145, allocations: 0 / 423.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.1146, allocations: 7.938 kB / 423.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1146, allocations: 4 kB / 423.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000182/0.1147, allocations: 83.95 kB / 423.4 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000742/0.1155, allocations: 0.5004 MB / 423.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/0.1157, allocations: 94.53 kB / 424 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.1159, allocations: 88.88 kB / 424.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.1159, allocations: 0 / 424.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.1163, allocations: 246.6 kB / 424.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.1163, allocations: 0 / 424.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001056/0.1173, allocations: 0.6189 MB / 424.9 MB, free: 5.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.1175, allocations: 199.9 kB / 425.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007096/0.1182, allocations: 0.5562 MB / 425.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.803e-05/0.1182, allocations: 33.7 kB / 425.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.483e-05/0.1183, allocations: 121 kB / 425.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.815e-05/0.1184, allocations: 31.94 kB / 425.9 MB, free: 4.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.1185, allocations: 101.5 kB / 426 MB, free: 4.117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1186, allocations: 330.8 kB / 426.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.1188, allocations: 83.91 kB / 426.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.119, allocations: 100.2 kB / 426.5 MB, free: 3.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004508/0.1194, allocations: 434.6 kB / 426.9 MB, free: 3.109 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1194, allocations: 0 / 426.9 MB, free: 3.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007377/0.1202, allocations: 0.5019 MB / 427.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.1203, allocations: 152.5 kB / 427.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.1203, allocations: 7.984 kB / 427.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.1203, allocations: 0 / 427.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.41e-05/0.1203, allocations: 3.938 kB / 427.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.1204, allocations: 0 / 427.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.1205, allocations: 20.05 kB / 427.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.1207, allocations: 105.3 kB / 427.7 MB, free: 2.258 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.0005006/0.1212, allocations: 396.1 kB / 428.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.369e-05/0.1212, allocations: 51.72 kB / 428.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.1213, allocations: 75.45 kB / 428.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1214, allocations: 0 / 428.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1214, allocations: 0 / 428.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1214, allocations: 0 / 428.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.1226, allocations: 0.9633 MB / 429.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1226, allocations: 0 / 429.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.949e-06/0.1227, allocations: 0 / 429.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1227, allocations: 3.984 kB / 429.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.819e-05/0.1227, allocations: 16 kB / 429.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1227, allocations: 11.88 kB / 429.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1227, allocations: 7.922 kB / 429.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008816/0.1236, allocations: 0.6664 MB / 429.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003365/0.1239, allocations: 252.6 kB / 430.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.575e-05/0.124, allocations: 15.98 kB / 430.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.1241, allocations: 15.94 kB / 430.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.1243, allocations: 51.94 kB / 430.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.1244, allocations: 97.3 kB / 430.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005384/0.1249, allocations: 418.8 kB / 430.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1249, allocations: 0 / 430.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.1252, allocations: 55.94 kB / 430.7 MB, free: 15.01 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.00126/0.1265, allocations: 1.224 MB / 432 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006342/0.1271, allocations: 480.9 kB / 432.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1271, allocations: 0 / 432.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000387/0.1275, allocations: 389 kB / 432.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008278/0.1284, allocations: 187.5 kB / 433 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/0.1326, allocations: 3.264 MB / 436.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005265/0.1331, allocations: 0.8221 MB / 437.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.556e-05/0.1332, allocations: 12.86 kB / 437.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.022e-05/0.1332, allocations: 47.42 kB / 437.1 MB, free: 8.293 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1332, allocations: 0 / 437.1 MB, free: 8.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2381/0.3713, allocations: 9.23 MB / 446.4 MB, free: 31.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.012/8.384, allocations: 10.2 kB / 446.4 MB, free: 31.46 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00299162 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/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] "Error: Could not read variable Mux2x1.out in file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv. Warning: Get data of variable Mux2x1.out from file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.822995484806597]