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.001707/0.001707, allocations: 73.56 kB / 21.24 MB, free: 0.5547 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.002043/0.002043, allocations: 159.3 kB / 24.5 MB, free: 3.715 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.456/1.456, allocations: 177.2 MB / 204.9 MB, free: 8.992 MB / 190.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: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 55.75 kB / 325.6 MB, free: 248 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09094/0.09253, allocations: 53.33 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003053/0.09558, allocations: 1.535 MB / 380.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.0976, allocations: 0.8459 MB / 381.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.088e-05/0.09766, allocations: 0 / 381.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.497e-05/0.09776, allocations: 15.86 kB / 381.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.425e-05/0.09785, allocations: 23.78 kB / 381.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.09811, allocations: 55.89 kB / 381.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.09834, allocations: 155.7 kB / 381.5 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.09845, allocations: 25.56 kB / 381.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007132/0.09916, allocations: 0.6356 MB / 382.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.09933, allocations: 75.69 kB / 382.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.647e-05/0.09939, allocations: 12 kB / 382.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.334e-05/0.09943, allocations: 11.94 kB / 382.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.09953, allocations: 83.62 kB / 382.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.09966, allocations: 87.3 kB / 382.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004602/0.1001, allocations: 478 kB / 382.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1001, allocations: 4 kB / 382.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1001, allocations: 0 / 382.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.1001, allocations: 0 / 382.9 MB, free: 11.6 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.0008537/0.101, allocations: 0.7464 MB / 383.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.101, allocations: 8.031 kB / 383.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.507e-05/0.1011, allocations: 48.64 kB / 383.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.1014, allocations: 240.7 kB / 384 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.1014, allocations: 4.375 kB / 384 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/0.1015, allocations: 16.36 kB / 384 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004559/0.1019, allocations: 322.3 kB / 384.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.1019, allocations: 0 / 384.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.497e-05/0.102, allocations: 8 kB / 384.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.102, allocations: 0 / 384.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002864/0.1023, allocations: 244.4 kB / 384.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007725/0.103, allocations: 432.2 kB / 385 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.1034, allocations: 247 kB / 385.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.1036, allocations: 233.4 kB / 385.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.1037, allocations: 4 kB / 385.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004825/0.1041, allocations: 391.1 kB / 385.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.1041, allocations: 4 kB / 385.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.00129/0.1054, allocations: 0.9089 MB / 386.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.1056, allocations: 195.9 kB / 386.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000751/0.1063, allocations: 0.5601 MB / 387.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.1063, allocations: 29.7 kB / 387.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.68e-05/0.1064, allocations: 117.1 kB / 387.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.287e-05/0.1065, allocations: 31.89 kB / 387.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.1066, allocations: 105.5 kB / 387.8 MB, free: 6.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.1068, allocations: 334.8 kB / 388.1 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.1071, allocations: 224.5 kB / 388.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.1073, allocations: 250.2 kB / 388.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004907/0.1078, allocations: 457.7 kB / 389 MB, free: 4.895 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1078, allocations: 0 / 389 MB, free: 4.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008393/0.1087, allocations: 0.6624 MB / 389.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/0.1088, allocations: 152.5 kB / 389.8 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1088, allocations: 4 kB / 389.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.1088, allocations: 3.938 kB / 389.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.59e-05/0.1088, allocations: 0 / 389.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1088, allocations: 112 / 389.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.109, allocations: 23.95 kB / 389.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.1091, allocations: 93.5 kB / 389.9 MB, free: 3.863 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.0004065/0.1095, allocations: 404.3 kB / 390.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.357e-05/0.1095, allocations: 43.72 kB / 390.4 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.1096, allocations: 75.39 kB / 390.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1096, allocations: 0 / 390.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1096, allocations: 4 kB / 390.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1096, allocations: 0 / 390.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.1109, allocations: 1.041 MB / 391.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1109, allocations: 0 / 391.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.881e-06/0.1109, allocations: 12.05 kB / 391.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.1109, allocations: 0 / 391.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.762e-05/0.1109, allocations: 23.98 kB / 391.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1109, allocations: 0 / 391.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1109, allocations: 0 / 391.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009462/0.1119, allocations: 0.8241 MB / 392.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004327/0.1123, allocations: 221.3 kB / 392.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.216e-05/0.1124, allocations: 12 kB / 392.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.1125, allocations: 15.98 kB / 392.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.1127, allocations: 55.94 kB / 392.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.1128, allocations: 101.4 kB / 392.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000536/0.1133, allocations: 430.8 kB / 393.2 MB, free: 432 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1133, allocations: 0 / 393.2 MB, free: 432 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.1136, allocations: 48 kB / 393.2 MB, free: 384 kB / 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.0001244/0.1137, allocations: 123.1 kB / 393.3 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008082/0.1146, allocations: 0.7635 MB / 394.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1146, allocations: 0 / 394.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004767/0.115, allocations: 0.5327 MB / 394.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008264/0.1159, allocations: 188.8 kB / 394.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.1172, allocations: 0.9007 MB / 395.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.1174, allocations: 215.6 kB / 395.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.767e-05/0.1175, allocations: 12.95 kB / 395.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.819e-05/0.1175, allocations: 20.5 kB / 395.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1175, allocations: 0 / 395.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of Templates: time 0.01234/0.1298, allocations: 8.059 MB / 404 MB, free: 5.223 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 480] 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: 4.320318343001418]